Re: [libvirt] Fwd: Re: need your help about virito vmchannel

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

 



On Tue, May 04, 2010 at 01:08:53PM -0400, Cole Robinson wrote:
> On 05/04/2010 12:38 PM, Matthew Booth wrote:
> > FYI for the list. I haven't looked at this yet.
> > 
> > Matt
> > 
> > -------- Original Message --------
> > Subject: Re: need your help about virito vmchannel
> > Date: Tue, 4 May 2010 18:00:02 +0530
> > From: Amit Shah <amit.shah@xxxxxxxxxx>
> > To: Matthew Booth <mbooth@xxxxxxxxxx>
> > CC: Jianlin Liu <jialiu@xxxxxxxxxx>
> > 
> > On (Tue) May 04 2010 [13:18:30], Matthew Booth wrote:
> >> On 04/05/10 12:48, Jianlin Liu wrote:
> >>> Hi Matthew,
> >>>
> >>>    I want to create a virtio vm channel in my guest. So I add the followiong to my guest xml file:
> >>> <channel type='pty'>
> >>>   <target type='virtio' name='org.linux-kvm.port.0'/>
> >>> </channel>
> >>
> >> Jianlin,
> >>
> >> While I wrote the libvirt->vmchannel glue, I'm not actually that
> >> familiar with vmchannel itself. I've cc'd Amit, who hopefully might
> >> recognise this problem and tell me how to fix it ;)
> >>
> >> Amit,
> >>
> >> Any idea what's going on here?
> > 
> > Yes:
> > 
> >>> Then I try to start the guest:
> >>> # virsh start winxp
> >>> error: Failed to start domain winxp
> >>> error: internal error Process exited while reading console log output: char device redirected to /dev/pts/4
> >>> char device redirected to /dev/pts/5
> >>> qemu-kvm: -device virtio-serial-pci,id=virtio-serial0,max_ports=0,vectors=0,bus=pci.0,addr=0x5: Device 'virtio-serial-pci' could not be initialized
> > 
> > With max_ports=0, the virtio-serial device doesn't get created and hence
> > this error.
> > 
> > 		Amit
> > 
> 
> I saw this issue as well, when I started adding channel support to
> virt-install (since stalled, but mostly complete). Adding a <channel>
> device creates an implicit virtio-serial controller which defaults to
> ports = 0.
> 
> Since ports = 0 is useless, maybe we should just defer to the qemu
> default for that case (which is 31 according to


Yep, if we're automatically creating  a virtio controller, we should just
let QEMU choose the default for it, or make libvirt use the QEMU default


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]