Re: How to create a virtio-serial console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/09/2014 03:50 PM, Michael Schwager wrote:
Hello,
I have been attempting to create a virtual machine with a virtio console.
However, it does not appear to be working as I've read in, for example,
http://www.redhat.com/archives/libvir-list/2012-May/msg00964.html . After I
create my virtual machine, no devices appear on the host. What am I doing wrong?

Here is my virt-install:
virt-install \
--ram=1024 \
--accelerate \
--name testola \
--vcpus=1,maxvcpus=2 \
--cpuset=auto \
--pxe \
--os-type=linux \
--os-variant=rhel7 \
--disk path=/var/kvm/testola.img \
--boot=hd,network,menu=on \
-v \
--network bridge=br0 \
--graphics none \
--channel pty,target_type=virtio \
--console pty,target_type=virtio

Once I run that virt-install, I expect to see files/devices in
/sys/class/virtio-ports and /dev/vport0?? . But there are none.


You said 'host' above, are you looking inside the VM or on your host? Those paths should be in your VM. On my fedora21 VM if have /dev/vport* and /dev/virtio-ports/*

What's your guest OS? Make sure it has the virtio-console module loaded

- Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux