Re: [fedora-virt] Routing to guests
by Robert Thiem
> From: Philip Rhoades
> I can ssh from/to the host/guest OK but how do I set up a route (or
> whatever is necessary) so that another machine:
> eth0: 192.168.0.12
> can ssh to the guest? - "ssh 192.168.122.68" gives "no route to host" -
> http://docs.fedoraproject.org/virtualization-guide/f12/en-US/html/ but
> the problem does not seem to be covered there.
Alexander is correct in saying that bridging would allow you to do that.
There are two networking discussed in the guide.
The first is a NAT (network address translation), in which the guests are
given "private" ip addresses and any outbound traffic appears to be coming
from the host machine's IP address. This is the same as the setup on your
ADSL router where the internal network machines get addresses of
192.168.x.x but the internet sees your requests as coming from the IP
address of your router.
There should be lots of documentation in linux firewalling guides under
sections on NAT (or possibly called IP Masquerading in some). Have a look
at these for information on port forwarding to reveal services
inside the virtual (such as ssh).
The other option is bridging. This shares the physical network interface
of the host with the guest. In this case the VM acts as though it's a
machine plugged into the same subnet as the host, its services are
accessible like those of the host and it's as vulnerable to attack as the
host.
Robert
11 years, 10 months
Re: [fedora-virt] [libvirt] [PATCH] qemu: qxl devices don't support multifunction yet
by Laine Stump
On 09/19/2011 01:32 PM, Daniel P. Berrange wrote:
> On Mon, Sep 19, 2011 at 07:16:22PM +0200, Marc-André Lureau wrote:
>> Hi hi
>>
>> On Fri, Sep 16, 2011 at 1:38 PM, Marc-André Lureau<mlureau(a)redhat.com> wrote:
>>>>> How do we allow other devices to share the slot? It seems to me that
>>>>> qemuDomainPCIAddressSetNextAddr() only allocate whole slot, while
>>>>> making sure there is no conflicts on the same slot.
>>>> So, if the user wants to use multi function pci device, he should
>>>> specify the
>>>> pci address.
>>> So adding a check such as:
>>>
>>> if (!multiFunc&& info->addr.pci.function != 0)
>>> return error("The %s device doesn't support multifunction address")
>>>
>> Wen, does that sound reasonable to you?
>>
>> Daniel, did you had time to verify that PCI allocation is per-slot?
>>
>> (It would be nice to get this "workaround" for the next release)
> IMHO this kind of hack doesn't belong in libvirt. It is fine for distro
> vendors to consider as a one off quick-hack for their packages of libvirt,
> if they don't have time to fix the real QXL bug, but not for libvirt
> upstream releases. QXL/QEMU should really be fixed since that's where the
> problem appears to lie.
As it stands, Fedora 16 (currently using unpatched libvirt-0.9.6) will
be going into beta with QXL video broken for Windows guests, so we need
some kind of Fedora-only patch very soon (see the schedule here:
https://fedoraproject.org/wiki/Releases/16/Schedule - fortunately just
delayed another week)
The original patch in this thread:
https://www.redhat.com/archives/libvir-list/2011-September/msg00534.html
of course doesn't include the above mentioned additional code, and there
isn't a followup patch. It would be very good to push a patch to the F16
git for this so it would hopefully get into the beta, but want to make
sure what I push is the "right" thing, so a "final" patch (and some
testing by people with F16 hosts) would be very helpful!
12 years, 2 months
spice-activex
by Stephen Duse-Anthony
Hi,
I am looking for spice-activex to plugin in IE?
What do I need to do to access this plugin?
Thanks and best regards,
Stephen
12 years, 2 months
virt-manager hangs on virt-preview enabled f15
by Gianluca Cecchi
Hello,
with all defined vms powered off, as soon as I start virt-manager and
double click on a vm row, it hangs and only way is to click top right
and then force quit.
I also tried recompiling spice-gtk from F16 source rpm
(http://koji.fedoraproject.org/koji/buildinfo?buildID=261760
btw: on mirrors I still see 0.7.1 for f16 and rawhide..... while
0.7.39 should be in f16 stable???)
so that now I have
spice-glib-0.7.39-1.fc15.x86_64.rpm
spice-gtk-0.7.39-1.fc15.x86_64.rpm
spice-gtk3-0.7.39-1.fc15.x86_64.rpm
spice-gtk-python-0.7.39-1.fc15.x86_64.rpm
spice-gtk-tools-0.7.39-1.fc15.x86_64.rpm
top - 10:01:30 up 55 min, 6 users, load average: 1.23, 0.92, 0.56
Tasks: 170 total, 3 running, 167 sleeping, 0 stopped, 0 zombie
Cpu(s): 10.2%us, 46.0%sy, 0.0%ni, 42.3%id, 1.3%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 4056320k total, 2235448k used, 1820872k free, 87908k buffers
Swap: 506012k total, 0k used, 506012k free, 971616k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15474 gcecchi 20 0 804m 47m 13m R 100.0 1.2 1:36.06 python
# strace -p 15474
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
I attach virt-manager.log...
Any hint on this problem?
In the mean time any alternative to virt-manager for graphically
manage my vm, attach cd, and so on?
Gianluca
12 years, 2 months
Guest can no longer be bootet with libvirt 0.9.6 from virt-preview repo
by Dennis Jacobfeuerborn
Hi,
I just noticed that once I upgrade to libvirt-0.9.6-1 from the virt-preview
repo on my Fedora 15 machine I can no longer boot guests that use virtio
disks. I only get "Boot failed: could not read the boot disk".
Removing the disk and re-adding it as IDE drive allows KVM to boot from the
disk (although the full boot obviously fails due to the hda/vda naming
difference but that's expected).
After downgrading to libvirt-0.8.8-7 again the problem goes away and the
guest boot fine from virtio disks.
Is this a known problem? Do I have to configure something differently to
make this work as it should?
Regards,
Dennis
12 years, 2 months
Dual boot Fedora15/Win7 with VM Win7 too
by David C. Mores
I have a new HP PC with AMD quad CPU that came with Win7 installed. I
installed Fedora 15 by first shrinking the hard drive ntfs partition in
half and letting the Fedora installation set up the dual boot
configuration in the GRUB boot menu. That all works fine. I can boot
either O/S with no problems or side effects.
Now to take this to the next level, I would like to setup a Win7 VM
under Fedora that uses the Win7 installation that is already available
in the Win 7 partition. Running the original Win 7 installation as a VM
guest would be cool - efficient use of storage, the Win7 license and
convenient - along with the existing option to reboot into Win 7. The
Fedora Virtualization Guide documentation does not seem to cover this
case where the O/S install exists before the VM is created.
Can this be done? Have you done it successfully? What are the details?
Dave
12 years, 2 months
spicy problems after enabling virt-preview repo on f15
by Gianluca Cecchi
Hello,
right today I enabled the virt-preview repo.
I'm having problems using spicy with a windows 7 vm:
spicy -p 5900 -f
suddenly after few seconds
(spicy:10733): GSpice-CRITICAL **: stream_mjpeg_data: assertion `j ==
st->mjpeg_cinfo.rec_outbuf_height' failed
Improper call to JPEG library in state 205
$ rpm -qf /usr/bin/spicy
spice-gtk-tools-0.7.1-1.fc15.x86_64
The updated packages after enabling the repo and running "yum update"
were thes ones (I then rebooted my laptop):
Sep 26 09:02:50 ope46 yum[1882]: Updated: spice-glib-0.7.1-1.fc15.x86_64
Sep 26 09:02:51 ope46 yum[1882]: Installed: libwsman1-2.2.4-3.fc15.x86_64
Sep 26 09:02:53 ope46 systemd[1]: Reloading.
Sep 26 09:02:54 ope46 yum[1882]: Updated: libvirt-client-0.9.6-1.fc15.x86_64
Sep 26 09:02:54 ope46 yum[1882]: Updated: libvirt-python-0.9.6-1.fc15.x86_64
Sep 26 09:02:56 ope46 yum[1882]: Updated: python-virtinst-0.600.0-4.fc15.noarch
Sep 26 09:02:56 ope46 yum[1882]: Updated: spice-gtk-0.7.1-1.fc15.x86_64
Sep 26 09:02:57 ope46 yum[1882]: Updated: spice-gtk-python-0.7.1-1.fc15.x86_64
Sep 26 09:02:58 ope46 yum[1882]: Installed:
virt-manager-common-0.9.0-5.fc15.noarch
Sep 26 09:02:59 ope46 yum[1882]: Updated: spice-gtk3-0.7.1-1.fc15.x86_64
Sep 26 09:02:59 ope46 yum[1882]: Updated:
libusb1-1.0.9-0.2.git212ca37c.fc15.x86_64
Sep 26 09:03:00 ope46 yum[1882]: Installed: usbredir-0.3.1-1.fc15.x86_64
Sep 26 09:03:01 ope46 yum[1882]: Updated: 2:qemu-img-0.15.0-4.fc15.x86_64
Sep 26 09:03:02 ope46 systemd[1]: Reloading.
Sep 26 09:03:02 ope46 systemd[1]: Reloading.
Sep 26 09:03:02 ope46 yum[1882]: Updated: 2:qemu-common-0.15.0-4.fc15.x86_64
Sep 26 09:03:02 ope46 yum[1882]: Updated: seabios-bin-0.6.2-2.fc15.noarch
Sep 26 09:03:03 ope46 yum[1882]: Updated: spice-server-0.9.1-1.fc15.x86_64
Sep 26 09:03:05 ope46 yum[1882]: Updated: 2:qemu-system-x86-0.15.0-4.fc15.x86_64
Sep 26 09:03:05 ope46 yum[1882]: Updated: 2:qemu-kvm-0.15.0-4.fc15.x86_64
Sep 26 09:03:07 ope46 systemd[1]: Reloading.
Sep 26 09:03:07 ope46 libvirtd: 09:03:07.494: 1344: info : libvirt
version: 0.8.8, package: 7.fc15 (Fedora Project, 2011-07-06-15:17:26,
x86-17.phx2.fedoraproject.org)
Sep 26 09:03:07 ope46 libvirtd: 09:03:07.494: 1344: warning :
qemudDispatchSignalEvent:406 : Shutting down on signal 15
Sep 26 09:03:07 ope46 libvirtd: Could not find keytab file:
/etc/libvirt/krb5.tab: No such file or directory
Sep 26 09:03:07 ope46 yum[1882]: Updated: libvirt-0.9.6-1.fc15.x86_64
Sep 26 09:03:13 ope46 yum[1882]: Updated: vinagre-3.1.5-1.fc15.x86_64
Sep 26 09:03:15 ope46 yum[1882]: Updated: virt-manager-0.9.0-5.fc15.noarch
Sep 26 09:03:15 ope46 yum[1882]: Updated: spice-gtk-tools-0.7.1-1.fc15.x86_64
Sep 26 09:03:18 ope46 yum[1882]: Updated: spice-client-0.9.1-1.fc15.x86_64
Sep 26 09:03:19 ope46 yum[1882]: Updated:
febootstrap-supermin-helper-3.8-1.fc15.x86_64
spicec seems to work but display with a small box (and I don't like
spicec in general...)
Also virt-manager seems quite unstable; two examples in a few minutes
1) totally grey and I have to force quit and restart
2) no double click on a running vm
using strace -p in this case against virt-manger shows a lot fo
sched_yield() = 0
sched_yield() = 0
sched_yield() = 0
Any help to eventually things to pre-configure before enabling
virt-preview on a f15 stock host?
Gianluca
12 years, 2 months
virtio-win 0.1.15 iso missing network drivers?
by Gianluca Cecchi
Hello,
using Fedora 15 + virt-preview, I would like to update drivers for my W7 vm.
It seems that inside the 0.1.15 iso there are no netkvm drivers for
windows 7 (both x86 and x86_64).
Any explanation for this? Where could I download updated ones?
BTW: why its version is less than the .vfd one...? 0.1.15 vs 1.1.16...
I think this can lead to misunderstanding...
Gianluca
12 years, 2 months
Routing only works in one direction
by Philip Rhoades
People,
I have been installing virtual machines for a while on a Fedora 14
x86_64 system (the most recent one was F16 Alpha i686) and I have always
managed to be able to test what I wanted to but ssh-ing from the host to
the virtual machines has never worked (it always works the other way
around). I get:
ssh: connect to host 192.168.122.139 port 22: No route to host
ifconfig shows:
virbr0 Link encap:Ethernet HWaddr FE:54:00:9F:96:2F
inet addr:192.168.122.1 Bcast:192.168.122.255
Mask:255.255.255.0
route shows:
192.168.122.0 * 255.255.255.0 U 0 0
0 virbr0
so why the error message?
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil(a)pricom.com.au
12 years, 2 months