virsh: Connected to domain Escape character is ^]
I'm having an issue with viewing output from a virtual machine installed via virt-install.
I first used this method, but it left me with the following immediately after running:
Starting install...
Connected to domain ApacheServer
Escape character is ^]
It sits here forever and no input is accepted into the terminal at this point. After some googling around the web, I ended up destroying/deleting my guest, and starting over with the install, but this time, I had added
--console pty,target_type=serial to the arguments being passed to virt-install. For some clarity, below is the complete install command I used last:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--cdrom /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
This doesn't change anything for me. I am still stuck at Escape character is ^] after the install. I even closed this console window out, and tried to get into the guest via $ virsh console ApacheServer. This leaves me with:
Connected to domain ApacheServer
Escape character is ^]
error: operation failed: Active console session exists for this domain
My current expectation is that after the install, or after issuing the virsh console <domain name> command, I should see the console/terminal output that the guest is putting out.
virtual-machine libvirt virsh
add a comment |
I'm having an issue with viewing output from a virtual machine installed via virt-install.
I first used this method, but it left me with the following immediately after running:
Starting install...
Connected to domain ApacheServer
Escape character is ^]
It sits here forever and no input is accepted into the terminal at this point. After some googling around the web, I ended up destroying/deleting my guest, and starting over with the install, but this time, I had added
--console pty,target_type=serial to the arguments being passed to virt-install. For some clarity, below is the complete install command I used last:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--cdrom /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
This doesn't change anything for me. I am still stuck at Escape character is ^] after the install. I even closed this console window out, and tried to get into the guest via $ virsh console ApacheServer. This leaves me with:
Connected to domain ApacheServer
Escape character is ^]
error: operation failed: Active console session exists for this domain
My current expectation is that after the install, or after issuing the virsh console <domain name> command, I should see the console/terminal output that the guest is putting out.
virtual-machine libvirt virsh
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26
add a comment |
I'm having an issue with viewing output from a virtual machine installed via virt-install.
I first used this method, but it left me with the following immediately after running:
Starting install...
Connected to domain ApacheServer
Escape character is ^]
It sits here forever and no input is accepted into the terminal at this point. After some googling around the web, I ended up destroying/deleting my guest, and starting over with the install, but this time, I had added
--console pty,target_type=serial to the arguments being passed to virt-install. For some clarity, below is the complete install command I used last:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--cdrom /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
This doesn't change anything for me. I am still stuck at Escape character is ^] after the install. I even closed this console window out, and tried to get into the guest via $ virsh console ApacheServer. This leaves me with:
Connected to domain ApacheServer
Escape character is ^]
error: operation failed: Active console session exists for this domain
My current expectation is that after the install, or after issuing the virsh console <domain name> command, I should see the console/terminal output that the guest is putting out.
virtual-machine libvirt virsh
I'm having an issue with viewing output from a virtual machine installed via virt-install.
I first used this method, but it left me with the following immediately after running:
Starting install...
Connected to domain ApacheServer
Escape character is ^]
It sits here forever and no input is accepted into the terminal at this point. After some googling around the web, I ended up destroying/deleting my guest, and starting over with the install, but this time, I had added
--console pty,target_type=serial to the arguments being passed to virt-install. For some clarity, below is the complete install command I used last:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--cdrom /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
This doesn't change anything for me. I am still stuck at Escape character is ^] after the install. I even closed this console window out, and tried to get into the guest via $ virsh console ApacheServer. This leaves me with:
Connected to domain ApacheServer
Escape character is ^]
error: operation failed: Active console session exists for this domain
My current expectation is that after the install, or after issuing the virsh console <domain name> command, I should see the console/terminal output that the guest is putting out.
virtual-machine libvirt virsh
virtual-machine libvirt virsh
edited Feb 23 at 21:22
Joshua Schlichting
asked Feb 23 at 19:33
Joshua SchlichtingJoshua Schlichting
14117
14117
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26
add a comment |
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26
add a comment |
1 Answer
1
active
oldest
votes
So, it turns out that specifying your boot device with --cdrom /path/to/bootmedia.iso can be problematic when it comes to viewing output during boot up. Trying to install again, I noticed this warning pop up before the Starting install... text:
WARNING CDROM media does not print to the text console by default, so
you likely will not see text install output. You might want to use
--location. See the man page for examples of using --location with CDROM media
I searched for this warning and found suggestions for adding the following to the virt-install args:
--location /path/to/bootmedia.iso en lieu of --cdrom
and --extra-args console=ttyS0.
After making these two changes, everything worked. The complete working install command is as follows:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--location /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
--extra-args console=ttyS0
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502560%2fvirsh-connected-to-domain-name-escape-character-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
So, it turns out that specifying your boot device with --cdrom /path/to/bootmedia.iso can be problematic when it comes to viewing output during boot up. Trying to install again, I noticed this warning pop up before the Starting install... text:
WARNING CDROM media does not print to the text console by default, so
you likely will not see text install output. You might want to use
--location. See the man page for examples of using --location with CDROM media
I searched for this warning and found suggestions for adding the following to the virt-install args:
--location /path/to/bootmedia.iso en lieu of --cdrom
and --extra-args console=ttyS0.
After making these two changes, everything worked. The complete working install command is as follows:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--location /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
--extra-args console=ttyS0
add a comment |
So, it turns out that specifying your boot device with --cdrom /path/to/bootmedia.iso can be problematic when it comes to viewing output during boot up. Trying to install again, I noticed this warning pop up before the Starting install... text:
WARNING CDROM media does not print to the text console by default, so
you likely will not see text install output. You might want to use
--location. See the man page for examples of using --location with CDROM media
I searched for this warning and found suggestions for adding the following to the virt-install args:
--location /path/to/bootmedia.iso en lieu of --cdrom
and --extra-args console=ttyS0.
After making these two changes, everything worked. The complete working install command is as follows:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--location /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
--extra-args console=ttyS0
add a comment |
So, it turns out that specifying your boot device with --cdrom /path/to/bootmedia.iso can be problematic when it comes to viewing output during boot up. Trying to install again, I noticed this warning pop up before the Starting install... text:
WARNING CDROM media does not print to the text console by default, so
you likely will not see text install output. You might want to use
--location. See the man page for examples of using --location with CDROM media
I searched for this warning and found suggestions for adding the following to the virt-install args:
--location /path/to/bootmedia.iso en lieu of --cdrom
and --extra-args console=ttyS0.
After making these two changes, everything worked. The complete working install command is as follows:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--location /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
--extra-args console=ttyS0
So, it turns out that specifying your boot device with --cdrom /path/to/bootmedia.iso can be problematic when it comes to viewing output during boot up. Trying to install again, I noticed this warning pop up before the Starting install... text:
WARNING CDROM media does not print to the text console by default, so
you likely will not see text install output. You might want to use
--location. See the man page for examples of using --location with CDROM media
I searched for this warning and found suggestions for adding the following to the virt-install args:
--location /path/to/bootmedia.iso en lieu of --cdrom
and --extra-args console=ttyS0.
After making these two changes, everything worked. The complete working install command is as follows:
virt-install
-n ApacheServer
--description "CENTOS7 for Apache Server"
--os-type=Linux
--os-variant=rhel6
--ram=2048
--vcpus=1
--disk path=/var/lib/libvirt/images/CentOS7-Apache.img,bus=virtio,size=10
--graphics none
--console pty,target_type=serial
--location /home/server/Downloads/CentOS-7-x86_64-Minimal-1810.iso
--network bridge:virbr0
--extra-args console=ttyS0
answered Feb 23 at 21:48
Joshua SchlichtingJoshua Schlichting
14117
14117
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f502560%2fvirsh-connected-to-domain-name-escape-character-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I see the down vote here, but without any sort of critique, I'm not sure what to make of that, or how to change my question to be better. I posted my issue, the expected output, the actual output, and what I've done to get this far. I'm open to hearing about how I can make my question better.
– Joshua Schlichting
Feb 23 at 21:26