Virt-Manager Guests and tune2fs?
by Frank Murphy
I have some guests (one in particular)
I need to check the fs, which are luks encrypted.
Can someone point me right,
have installed guesfish?
but have always been lost with "man x"
unless specific examples gives.
Host is luks except /libvirt/images (/dm0)
But the guests on it are luks.
--
Regards,
Frank Murphy
UTF_8 Encoded
Friend of Fedora
13 years, 9 months
irqbalance required for CentOS-5.5 in F13
by Björn Sund
Is this a bug or feature?
Worked fine without it in previous versions.
Not 100% sure it is just irqbalance, but when doing minimal installs the
VM would crash after some time running. Installed acpid with no result
and then irqbalance and it would run fine.
regards
13 years, 9 months
Fedora Virt Status
by Justin Forbes
Fedora 14
=========
Fedora 14 development is moving along and we are getting very close to
the feature freeze. If you have a pending feature, it needs to be in
and ready for testing as soon as possible.
2010-07-27 Feature Freeze (12 Days)
2010-08-03 Alpha Freeze (19 Days)
2010-09-07 Beta Freeze (54 Days)
2010-10-12 Final Freeze (89 Days)
2010-10-26 Fedora 14 Release (103 Days)
Fedora 13
=========
Just a note that we have a few virtualization packages in updates-testing.
Please test and provide karma in bodhi as appropriate.
Fedora Cloud SIG
================
Progress is being made towards updated Fedora in the EC2 cloud, and
There is some interest in supporting other cloud environments. More
details can be found at https://fedoraproject.org/wiki/Cloud_SIG
Virt Preview
================
As was announced before, the virt-preview repository for F12 users wishing
to test out the latest F13 virtualization bits is available. Additionally we
have created a virt-preview repository for F13 users wishing to test out
packages destined for F14 virtualization. Instructions for using these
repositories can be found at:
https://fedoraproject.org/wiki/Virtualization_Preview_Repository
Recent updates in this repository include:
F-13:
====
libguestfs-1.5.0-4:
- New development branch 1.5.0.
- Remove two upstream patches.
- Work around permanently broken test-getlogin_r Gnulib test.
libvirt-0.8.2-2:
- CVE-2010-2237 ignoring defined main disk format when looking up disk backing stores
- CVE-2010-2238 ignoring defined disk backing store format when recursing into disk
image backing stores
- CVE-2010-2239 not setting user defined backing store format when creating new image
- CVE-2010-2242 libvirt: improperly mapped source privileged ports may allow for
obtaining privileged resources on the host
- Upstream release 0.8.2
- phyp: adding support for IVM
- libvirt: introduce domainCreateWithFlags API
- add 802.1Qbh and 802.1Qbg switches handling
- Support for VirtualBox version 3.2
- Init script for handling guests on shutdown/boot
- qemu: live migration with non-shared storage for kvm
python-virtinst-0.500.3-4:
- Drop default CPU config, fix some 64bit installs (bz 611584)
- If host is 64bit, make sure VM always sees 64bit CPU (bz 611584)
- Keep windows CDROM attached for second install stage
- Fix pool source listing in virt-manager
F13 Bugs
========
DOOM-O-METER: 33 bugs are open against F14 virtualization packages,
but it is rather early in the cycle. 118 bugs are open against F13
virtualization packages. We need to spend a bit of time focusing on
these. If you would like to help out, you can find more information
at: http://fedoraproject.org/wiki/Virtualization_bugs
= Important =
== kvm ==
https://bugzilla.redhat.com/show_bug.cgi?id=605757
2tb virtio disk gets massively corrupted filesystems
This issue should be resolved in the next qemu update for F13.
https://bugzilla.redhat.com/show_bug.cgi?id=613517
Guest machine is stuck (no ping, no nothing) (host spends 25% in read_hpet)
This should be fixed with the latest seabios update in F13 updates-testing.
13 years, 9 months
Re: [fedora-virt] Guest unresolved USB issues.
by Cole Robinson
On 07/12/2010 12:40 PM, Paul Lambert wrote:
> Cole,
>
> First, over a year ago now, USB was working just fine in Fe-11. I had
> several USB disks connected but now the same disks fail to be recognized in
> Fe-13. These disks supported the 480 mb data rate for USB2.0
>
> You state qemu does not support USB 2.0. Yet when I use "add hardware" the
> software clearly detects the USB 2.0 hubs and other 2.0 devices that are
> plugged in. If USB 2.0 is not supported then this is the most likely
> problem.
The UI you are using is virt-manager. virt-manager uses libvirt to list
all USB devices on your host machine. The 'add hardware' wizard let's
you expose any USB device to QEMU/KVM (the emulator which actually does
all the heavy lifting). So yes, virt-manager/libvirt can handle USB 2.0
However, QEMU does not know how to take that device and make it appear
as a USB 2.0 device to your VM OS: it can only expose it as USB 1.1 for
all QEMU versions in Fedora. Most devices can fallback to USB1 mode
though, so I'm not positive if that is why the device isn't showing up
in your guest.
> When will qemu support USB 2.0?
It is slowly being worked on upstream, but it doesn't sound like it is
going to make the next qemu release which is happening within a month AIUI.
>
> I ran "yum --enablerepo=updates-testing update" and all packages show they
> are up to date. I see no errors in the log files
>
Okay.
>
> There are a lot of these in the qemu log file
>
> husb: 1 interfaces claimed for configuration 1
> husb: grabbed usb device 1.4
> husb: open device 1.4
> husb: config #1 need -1
> husb: 1 interfaces claimed for configuration 1
> husb: grabbed usb device 1.4
> husb: open device 1.4
> husb: config #1 need -1
The USB code is kind of noisy, but none of that looks incorrect. Then
again I don't know the QEMU code very well.
Did you test passing through another USB device? That should help narrow
it down.
- Cole
13 years, 9 months
Re: [fedora-virt] Guest unresolved USB issues.
by Cole Robinson
On 07/11/2010 12:19 PM, Paul Lambert wrote:
> Cole,
>
> I am still not able to see any USB devices other than the mouse/keyboard.
> The first output is that of lsusb on the host which shows my Apple iPod
> plugged in. The second listing is that of my Windows XP guest XML file.
> The attached file is a screen capture of the Windows app that shows the USB
> devices that are connected. It appears to me that my root hubs are not
> being recognized. Is this a bug, configuration error, KVM python startup
> command line error, etc.???
>
Moving to fedora-virt since this is relevant for other folks as well.
Firstly, make sure you are running the latest fedora packages, since
there have been some USB fixes within the past month.
Your config looks fine. Does passing through any other device work, like
a USB memory stick? Some of the newer ipods might require USB 2.0 which
Qemu doesn't support.
Are there any errors in /var/log/libvirt/qemu/$VMNAME.log ? Does
'setenforce 0' on the host, then a VM restart help at all?
> Sound does not work on the guest either.
>
Sound not working is a known issue, I'll be posting workaround docs
today (I really mean it :) )
> Thanks
>
> Paul
>
> results of lsusb on host
> Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 003: ID 05ac:1299 Apple, Inc.
> Bus 001 Device 002: ID 046d:09b8 Logitech, Inc.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> <domain type='kvm'>
> <name>Windows-XP-SP3-Home-2003</name>
> <uuid>ee3bc9fe-a724-45b5-b675-11251f5c453f</uuid>
> <memory>786432</memory>
> <currentMemory>786432</currentMemory>
> <vcpu>2</vcpu>
> <os>
> <type arch='i686' machine='pc-0.11'>hvm</type>
> <boot dev='hd'/>
> </os>
> <features>
> <acpi/>
> </features>
> <clock offset='utc'/>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>restart</on_reboot>
> <on_crash>restart</on_crash>
> <devices>
> <emulator>/usr/bin/qemu-kvm</emulator>
> <disk type='file' device='disk'>
> <source file='/var/lib/libvirt/images/Windows-XP-SP3-Home-2003.img'/>
> <target dev='hda' bus='ide'/>
> <address type='drive' controller='0' bus='0' unit='0'/>
> </disk>
> <disk type='block' device='cdrom'>
> <driver name='qemu'/>
> <target dev='hdc' bus='ide'/>
> <readonly/>
> <address type='drive' controller='0' bus='1' unit='0'/>
> </disk>
> <controller type='ide' index='0'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x1'/>
> </controller>
> <interface type='network'>
> <mac address='52:54:00:bb:ba:38'/>
> <source network='default'/>
> <model type='rtl8139'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
> </interface>
> <serial type='pty'>
> <target port='0'/>
> </serial>
> <console type='pty'>
> <target port='0'/>
> </console>
> <input type='tablet' bus='usb'/>
> <input type='mouse' bus='ps2'/>
> <graphics type='vnc' port='-1' autoport='yes'/>
> <sound model='es1370'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
> </sound>
> <video>
> <model type='cirrus' vram='9216' heads='1'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
> </video>
> <hostdev mode='subsystem' type='usb' managed='yes'>
> <source>
> <vendor id='0x1d6b'/>
> <product id='0x0002'/>
> <address bus='1' device='1'/>
> </source>
> </hostdev>
> <hostdev mode='subsystem' type='usb' managed='yes'>
> <source>
> <vendor id='0x1d6b'/>
> <product id='0x0001'/>
> <address bus='3' device='1'/>
> </source>
> </hostdev>
> <hostdev mode='subsystem' type='usb' managed='yes'>
> <source>
> <vendor id='0x1d6b'/>
> <product id='0x0002'/>
> </source>
> </hostdev>
> </devices>
> </domain>
>
13 years, 9 months
network services not working properly in a vm?
by Kenneth Armstrong
I have 2 RHEL 5.5 VM's on a Fedora 13 host, using Default (NAT)
networking. I can ssh into these fine, but when I install services
such as DNS, NTP, FTP, etc. and open their respective ports in the
guest's firewall, the guest acts as if their closed still.I ran nmap
against my
guests, and they show that the ports are there, but closed (as in
below):
PORT STATE SERVICE
21/tcp closed ftp
22/tcp open ssh
53/tcp closed domain
631/tcp closed ipp
MAC Address: 52:54:00:5A:B3:E4 (QEMU Virtual NIC)
Is there something else I'm supposed to be doing to make this work
with my guests?
13 years, 9 months
Adding tgtd iSCSI LUNs on the fly
by Ewan Mac Mahon
Hi,
This isn't strictly a virt question, but I hope it's related enough
that this is a sensible place to ask it.
I've got a small libvirt/KVM setup (on F13) that uses a separate storage
box (on RHEL/SL 5.4) running tgtd to export iSCSI storage consisting of
a single target with one (LV backed) LUN per VM. The storage is all
configured in /etc/targets.conf. If I add a new LUN to the configuration
file and then try to make it live by doing:
tgt-admin --verbose --execute
I simply get a message saying that the target already exists (which it
does) and the LUN isn't added. I can, however, add the LUN manually by
doing something like:
tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 5 -b /dev/VGstorage/LVkvm-vm5
So, in short, is there a better way of doing this that will sync the
running configuration from /etc/targets.conf, including picking up
changes to a target rather than just new targets?
Ewan
13 years, 9 months
Is this an F12 or Virt Problem
by Frank Murphy
F13 x86_64 host. core 2 quad
Virt-manager:
Trying to boot F12 x86_64 LiveCD (2 cores, 2gb ram allowed)
Should this be bugged?
--
Regards,
Frank Murphy
UTF_8 Encoded
Friend of Fedora
13 years, 10 months
[ANNOUNCE] libguestfs 1.4.0 - tools for accessing and modifying disk images and virtual machines
by Richard W.M. Jones
I'm pleased to announce a major new release of libguestfs.
libguestfs is a library and a set of tools for accessing and modifying
disk images and virtual machines. You can use this for viewing and
editing files inside guests, scripting changes to VMs, monitoring disk
used/free statistics, P2V, V2V, performing partial backups, cloning
VMs, and much more.
Home page: http://libguestfs.org/
Downloads: http://libguestfs.org/download/?C=M;O=D
Release notes for libguestfs 1.4.0
----------------------------------
These release notes only cover the differences from the previous
stable/dev branch split (1.2.0). For detailed changelogs, please see
the git repository, or the ChangeLog file distributed in the tarball.
New features
- guestfish lets you choose a prepared disk image, eg:
guestfish -N fs:ext4
- Add write support to guestmount (FUSE) module.
- virt-resize can now resize the content of partitions and logical
volumes in the guest, and we have better support for shrinking guests.
- Bash tab-completion script for guestfish.
- Add ZFS support to virt-rescue.
- New tool 'virt-make-fs' for creating filesystems with content.
- Allow suffixes on any guestfish number parameter, eg. "1M".
- guestfish 'man' command opens the manual page.
- guestfish supports a "heredoc" syntax for uploading files:
upload -<<_end_ /foo
content
_end_
- Some guestfish commands now print their output in octal or hex
where appropriate (RHBZ#583242).
- Allow dash prefix on guestfish command line. This ignores any
error from the second command: (RHBZ#578407)
guestfish -- cmd1 : -cmd2 : cmd3
- guestfish -h / help command now returns an error for non-existent
commands (RHBZ#597145).
- New 'supported' command in guestfish to list optional groups of
commands which are supported by the daemon / configuration.
- virt-inspector and guestfish -i now work for filenames which
contain spaces (RHBZ#507810).
- Change the protocol to use link-local addresses, to avoid
conflicting with any address that the host might be using
(RHBZ#588763).
- libguestfs now sets the correct time and timezone on filesystem
modifications.
- Sort the domains into alphabetical order in virt-df.
- Make mkfs-b command work for FAT and NTFS by mapping the blocksize
parameter to the cluster size (RHBZ#599464).
- Add version numbers to Perl modules (RHBZ#521674).
- Localization now works for all the libguestfs tools (RHBZ#559963).
- Tools now support filesystem-on-image VMs (RHBZ#590167).
- virt-list-partitions has a '-t' option to show the total size of disks.
- Include extra Augeas lenses in the supermin appliance (Matthew Booth).
- Add error and close callbacks.
- Add explicit close method in the Perl API.
- Multiple fixes for RHEL 5 compatibility.
- Multiple fixes for Debian/Ubuntu compatibility.
- Multiple revisions to improve the documentation.
Security
- Fix a potential DoS in virt-inspector and virt-v2v if a specially
crafted disk image contained a char device in place of one of the
configuration files that we read under /etc (RHBZ#582484).
New APIs
- aug-clear - clear Augeas path
- available-all-groups - return a list of all optional groups
- base64-in - upload base64-encoded data to file
- base64-out - download file and encode as base64
- checksum-device - compute checksums on the contents of a device
- checksums-out - compute checksums of multiple files in a directory
- debug-upload - upload a file to the appliance
- fallocate64 - preallocate a file in the guest filesystem
- fill-pattern - fill a file with a repeating pattern of bytes
- get-umask - get the current umask
- lvresize-free - expand an LV to fill free space
- ntfsresize - resize an NTFS filesystem
- ntfsresize-size - resize an NTFS filesystem (with size)
- part-del - delete a partition
- part-get-bootable - get the bootable flag of a partition
- part-get-mbr-id - get the MBR type byte of a partition
- part-set-mbr-id - set the MBR type byte of a partition
- pvresize-size - resize a physical volume (with size)
- pwrite - write to part of a file
- resize2fs-size - resize an ext2/3/4 filesystem (with size)
- txz-in - unpack compressed tarball to directory (RHBZ#580556)
- txz-out - pack directory into compressed tarball (RHBZ#580556)
- vfs-label - get the filesystem label
- vfs-uuid - get the filesystem UUID
- vgscan - rescan for LVM physical volumes, volume groups and logical volumes
- write - create a new file
- zero-device - write zeroes to an entire device
Internals
- Extend the generator to support testing optional features.
- Stricter checks on input parameters to many calls (RHBZ#501893 RHBZ#501894)
- Extend the protocol to support sending arbitrary 8 bit data buffers.
- Ship 'BUGS' file with releases. This is a summary of the bugs in
the Red Hat Bugzilla database.
- Ship 'RELEASE-NOTES' file with releases, containing release notes.
- Unify supermin appliance building into one place, in febootstrap 2.7.
- Fix the protocol code to handle the case where both ends send cancel
messages at the same time.
Bugs fixed
- 612178 guestfish: using -m option in conjunction with --listen option causes appliance to die
- 610880 libguestfs should set broader read perms on tmpdir, so works in some situations when executed with umask 077
- 604691 OCaml bindings are not thread safe
- 603870 Updates to Spanish translation
- 602592 [RFE] expose guestfs_close in perl bindings
- 600977 virt-df -h --csv "Argument .. isn't numeric in printf"
- 599464 mkfs-b does not support vfat/ntfs
- 598807 add_cdrom does not work in RHEL 6
- 598309 part-list and several other cmd failed on libguestfs on RHEL5
- 597145 guestfish 'help' command should indicate error in exit status with an unknown command
- 597135 guestfish write-file cmd does not check "size" parameter
- 597118 A warning should be given in the help of mke2journal-L for the length of label
- 597112 get-e2uuid should use blkid instead of "tune2fs -l" to get filesystem UUID
- 596776 virt-inspector doesn't discover modprobe aliases on RHEL 3 guests
- 596763 Updates to Spanish translation
- 593292 Updates to Spanish translation
- 592883 can not edit files on images mounted with guestmount cmd
- 592360 Updates to Spanish translation
- 591250 virt-tar prints "tar_in: tar subcommand failed on directory" if the archive is compressed or not in the right format
- 591155 virt-tar prints "tar_in: tar subcommand failed on directory" if a disk image is not writable
- 591142 virt-inspector should give an error for unrecognized disk images
- 590167 virt-inspector and other virt tools should be able to handle filesystem-on-image VMs
- 589039 guestfish read-file cmd will cause daemon hang when read large files
- 588851 guestfs_launch() returns -1, but guestfs_last_error() == NULL
- 588763 libguestfs should use non-public or link-local addresses for appliance network
- 588733 Updates to Spanish translation
- 588651 guestfish 'strings-e' cmd does not give proper error message or hint
- 587484 lvresize can't reduce size of a volumn
- 585961 Updates to Spanish translation
- 585223 ntfsresize should support shrinking filesystems
- 585222 pvresize should support shrinking PVs
- 585221 resize2fs should support shrinking filesystems
- 584038 Updates to Spanish translation
- 583554 [FEAT] mknod-mode command is needed to set mode explicitly
- 583242 [RFE] guestfish should print outputs in a suitable base (eg. octal for modes)
- 582993 guestfish eats words when tab completing case (in)sensitive paths
- 582953 Misleading help information about lvcreate command
- 582948 mknod command doesn't make block, character or FIFO devices
- 582929 mknod doesn't check for invalid mode
- 582901 guestfish chmod/umask commands do not check invalid mode value
- 582899 guestfish:sparse is missed from command autocomplete list
- 582891 [Feature Request] behavior and return value of guestfish umask cmd should be changed
- 582548 [mknod] umask shouldn't take effect when mode is set explicitly
- 582484 some guestfish sub commands can not handle special files properly
- 582252 Updates to Spanish translation
- 581501 Updates to Spanish translation
- 580650 virt-inspector warns "No grub default specified at /usr/lib/perl5/Sys/Guestfs/Lib.pm at [...]"
- 580556 request for libguestfs to support .txz tarballs
- 580246 tar-in command hangs if uploading more than available space
- 580016 aug-ls in guestfish does not take augeas variable as argument
- 579664 guestfish doesn't report error when there is not enough space for image allocation
- 579608 multiple commands in guestfish can not work for symbol links
- 579155 libguestfs hangs if qemu doesn't start (in null vmchannel mode)
- 578407 the prefix '-' in sub-command isn't handled by guestfish in remote control mode
- 576879 libguestfs protocol loses synchronization if you 'upload' before mounting disks
- 559963 libguestfs Perl programs do set locale, but still localization doesn't work
- 521674 Perl modules are unversioned, but should carry version numbers
- 516096 Race condition in test_swapon_label_0: /sbin/blockdev: BLKRRPART: Device or resource busy
- 507810 guestfish -i / virt-inspector cannot handle spaces in filenames
- 502533 Updated Polish translation of libguestfs
- 501894 Some String parameters should be OptString
- 501893 String parameters should be checked for != NULL
- 501889 write-file does not support strings containing ASCII NUL
- 484986 grub-install fails on virtio disk
Release notes for previous versions of libguestfs
-------------------------------------------------
2009-11-10 : 1.0.78
https://www.redhat.com/archives/libguestfs/2009-November/msg00095.html
2009-09-13 : 1.0.67
https://www.redhat.com/archives/libguestfs/2009-August/msg00281.html
2009-07-23 : 1.0.64
https://www.redhat.com/archives/libguestfs/2009-July/msg00059.html
2009-07-14 : 1.0.59
https://www.redhat.com/archives/libguestfs/2009-July/msg00023.html
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
13 years, 10 months
Virt-Manager Pseudo-Seriel Console?
by Frank Murphy
Is there any method to set up some form of seriel console,
between a non-booting rawhide guest and the host?
--
Regards,
Frank Murphy
UTF_8 Encoded
Friend of Fedora
13 years, 10 months