Re: [Xen-users] Re: How to Backup and Restore MBR within Logical Volumes?
by Mr. Teo En Ming (Zhang Enming)
Hi,
I don't think I will be using the LVM snapshot method. I will simply ensure
that my domU is not running, then I proceed to do the losetup and kpartx
procedure. Subsequently I will backup the MBR of my domU by dd-ing
/dev/loopX and clone all the filesystems of the domU using fsarchiver.
I would like to use fsarchiver because it can support LZMA compression. LZMA
can compress better than bzip2 and decompress 3x faster than bzip2.
partimage only supports gzip and bzip2.
--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe(a)gmail.com
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore
On Thu, Nov 12, 2009 at 10:02 AM, Fajar A. Nugraha <fajar(a)fajar.net> wrote:
> On Thu, Nov 12, 2009 at 4:52 PM, Mr. Teo En Ming (Zhang Enming)
> <space.time.universe(a)gmail.com> wrote:
> > Now I can proceed with writing the
> > backup and restore script for my Fedora 11 Dom0 (all partitions using
> LVM2
> > logical volumes) and all of my Xen virtual machines (contained in logical
> > volumes).
>
> A reminder though: don't forget to create a "consistent", unchanging
> version of domU storage before doing backup. Either by shutting down
> domU, or by creating LVM snapshot first.
>
> Also, if it comes to Windows domUs, I find ntfsclone is better than
> fsarchiver. One of the reasons is that fsarchiver can not create
> compressed files during restore.
>
> --
> Fajar
>
14 years, 5 months
Re: How to Backup and Restore MBR within Logical Volumes?
by Mr. Teo En Ming (Zhang Enming)
> Maybe I didn't really understand your setup, but... isn't your mbr simply
on /dev/loop1?
Yes, you are right.
root@sysresccd /mnt/hitachi/test % fdisk -l /dev/loop1
Disk /dev/loop1: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2b362b35
Device Boot Start End Blocks Id System
/dev/loop1p1 * 1 6526 52420063+ 7 HPFS/NTFS
I am so used with device nomenclature of harddisks being /dev/hda, /dev/hdb,
/dev/sda, /dev/md0, /dev/xvda, etc that it didn't occur to me that the
device node of my virtual machine in a logical volume is very simply
/dev/loop1 after I have performed the "losetup /dev/loop1
/dev/volumegroup/logicalvolume" step.
Thank you very much for enlightening me! Now I can proceed with writing the
backup and restore script for my Fedora 11 Dom0 (all partitions using LVM2
logical volumes) and all of my Xen virtual machines (contained in logical
volumes).
--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe(a)gmail.com
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore
On Thu, Nov 12, 2009 at 9:38 AM, Roberto Ragusa <mail(a)robertoragusa.it>wrote:
> Mr. Teo En Ming (Zhang Enming) wrote:
>
> > # kpartx -av /dev/loop1
> [...]
> > But the problem is that I can only backup/clone the filesystems of my
> > virtual machine within a logical volume. I can't backup the Master Boot
> > Record (MBR) of the virtual machine within a logical volume. For example,
> >
> > dd if=/dev/hda of=mbr.hda bs=512 count=1
> >
> > Because /dev/hda resides in a logical volume. The logical volume is a
> > virtual harddisk for my virtual machine.
>
> Maybe I didn't really understand your setup, but... isn't your mbr
> simply on /dev/loop1?
>
> --
> Roberto Ragusa mail at robertoragusa.it
>
> --
> fedora-list mailing list
> fedora-list(a)redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> Guidelines:
> http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
>
14 years, 5 months
[Xen-devel] [ANNOUNCE] Xen 3.4.2 released
by Pasi Kärkkäinen
----- Forwarded message from Keir Fraser <keir.fraser(a)eu.citrix.com> -----
From: Keir Fraser <keir.fraser(a)eu.citrix.com>
To: "xen-devel(a)lists.xensource.com" <xen-devel(a)lists.xensource.com>,
xen-users(a)lists.xensource.com
Cc:
Date: Tue, 10 Nov 2009 16:38:59 +0000
Subject: [Xen-devel] [ANNOUNCE] Xen 3.4.2 released
Folks,
Xen 3.4.2 is the latest maintenance release in the 3.4 stable branch. There
are a range of bug fixes since 3.4.1, and we recommend users to upgrade.
The source repository can be downloaded from:
http://xenbits.xensource.com/xen-3.4-testing.hg
The release is tagged 'RELEASE-3.4.2'.
Alternatively source tarballs can be downloaded from:
http://www.xen.org/products/xen_source.html
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel(a)lists.xensource.com
http://lists.xensource.com/xen-devel
----- End forwarded message -----
14 years, 5 months
Disappointed with the Upcoming Fedora 12 Release
by Mr. Teo En Ming (Zhang Enming)
Hi,
Fedora is my favorite Linux distribution. I have been eagerly anticipating
the upcoming release of Fedora 12 but am disappointed to discover that it
will not support Xen pv-ops dom0 kernel.
<QUOTE>
Xen Kernel Support
The kernel package in Fedora 12 supports booting as a guest domU, but will
not function as a dom0 until such support is provided upstream. Work is
ongoing and hopes are high that support will be included in kernel 2.6.33
and Fedora 13.
The most recent Fedora release with dom0 support is Fedora 8.
</QUOTE>
Link: http://fedoraproject.org/wiki/Docs/Beats/Virtualization
Here is a list of my Xen pv-ops dom0-related videos on Youtube so far. I am
using Fedora 11 x86_64 as my host operating system.
[1] PCI Express x16 VGA Passthrough to Xen-based Windows XP Home HVM Virtual
Machine Part 1 of 2
Link: http://www.youtube.com/watch?v=HNEiSInrav0
[2] PCI Express x16 VGA Passthrough to Xen-based Windows XP Home HVM Virtual
Machine Part 2 of 2
Link: http://www.youtube.com/watch?v=_hOT_9LIG5w
[3] The Final Solution: Open Source Xen VGA Passthrough
Link: http://www.youtube.com/watch?v=1ia3IwG6tp4
[4] Playing 3D FPS Game Alien Arena in Xen-based Windows XP Home Edition HVM
Virtual Machine
Link: http://www.youtube.com/watch?v=5tLzYqIJ7Q0
[5] Xen Virtualization VGA Passthrough: 3D Gaming Benchmark Results Part 2
of 2
Link: http://www.youtube.com/watch?v=yYg6n8yBktM
[6] Xen Virtualization VGA Passthrough: 3D Gaming Benchmark Results Part 1
of 2
Link: http://www.youtube.com/watch?v=5I13E1MQbMc
[7] Xen Virtualization VGA Passthrough: Disk I/O Benchmark Results
Link: http://www.youtube.com/watch?v=uL7JS4PMpzY
[8] Xen Virtualization VGA Passthrough: PerformanceTest 7.0 Virtual CPU
Benchmark Results
Link: http://www.youtube.com/watch?v=vLR-o9tX_Tw
[9] Xen Virtualization VGA Passthrough: SiSoftware Sandra Virtual Processor
Benchmark Part 1 of 2
Link: http://www.youtube.com/watch?v=BUXOAPce_40
[10] Xen Virtualization VGA Passthrough: SiSoftware Sandra Virtual Processor
Benchmark Part 2 of 2
Link: http://www.youtube.com/watch?v=k5lle8WOHLE
[11] Xen Virtualization VGA Passthrough: Playing 3D FPS Games in Windows XP
HVM Virtual Machine
Link: http://www.youtube.com/watch?v=Pikwgl8bac8
[12] Xen Virtualization & Intel VT-d: Direct Hardware Access to Graphics
Card by Windows Virtual Machines
Link: http://www.youtube.com/watch?v=HHUwg_zxYgw
[13] Xen Virtualization, VT-d, VGA Passthrough, & Windows XP HVM Virtual
Machine: Super PI 32M Benchmark
Link: http://www.youtube.com/watch?v=3mxuNRiMxDU
[14] Xen Virtualization: Super PI 32M Benchmark 2nd Iteration
Link: http://www.youtube.com/watch?v=m7W0OFFcw7I
[15] How to Setup a Virtual Supercomputer Center or HPC Cluster using Xen
Virtual Machines Part 1 of 2
Link: http://www.youtube.com/watch?v=GmNKi6CoExM
[16] How to Setup a Virtual Supercomputer Center or HPC Cluster using Xen
Virtual Machines Part 2 of 2
Link: http://www.youtube.com/watch?v=dAqDESEWMjM
[17] Building a Rocks HPC Cluster with Xen Hardware Virtual Machines (HVM)
Link: http://www.youtube.com/watch?v=LbLaPpwNAx4
[18] Building a Rocks HPC Cluster with Xen Hardware Virtual Machines (HVM)
(Update 1)
Link: http://www.youtube.com/watch?v=vWHIImVBr4o
Because of the absence of official support for Xen pv-ops dom0 kernel in
Fedora 11, I have to manually and laboriously configure my home multimedia
and general purpose desktop system over a period of 2-3 months. Admittedly I
have gained a lot of useful knowledge throughout the process. Thanks to
Boris' setup guides, and assistance from Pasi, Han Weidong from Intel Corp,
Jeremy Fitzhardinge from Citrix, and the rest of the Xen developers
community, I have managed to get a fully working Xen pv-ops dom0 Fedora 11
host operating system.
It will be a daunting task for newbie Linux users who want to setup a Xen
pv-ops dom0 system with the more recent releases of Fedora. Please do
consider including Xen pv-ops dom0 kernel in the next release of Fedora.
Michael Young has Xen dom0 kernel RPM packages for FC12. I am surprised that
they are not included in the upcoming Fedora 12 release.
Link: http://myoung.fedorapeople.org/dom0/x86_64/
Thank you.
--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe(a)gmail.com
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore
14 years, 5 months
Fedora 12 (rawhide) Xen domU works now, minor console keymap issue?
by Pasi Kärkkäinen
Hello,
Kernel 2.6.31-0.203.rc8.git2.fc12.i686.PAE for F12/rawhide domU seems to work
now on my F11 host with xen-3.4.1-3 + libvirt from F11 updates-testing +
2.6.31-rc6 pv_ops dom0 kernel.
There's a minor issue with domU vfb graphical console keymap though..
The F11 host has 'fi' (Finnish) keymap, and the F12 domU/guest is also installed
with 'fi' keymap.
All the 'special' keys on the graphical console (virt-viewer) are broken..
I don't really know what the resulting keymap is, but it's pretty weird.
Not english, not finnish, not anything I know of..
List of the important characters that are broken:
* / - _ | ? \ ( )
Either you can't make them at all, or you have to press totally wrong
buttons to get them.. so the console is really painful or impossible to use.
Any ideas how to debug this? Or is non-US even supposed to work?
Thanks!
-- Pasi
14 years, 5 months
RE: [Xen-devel] Virt-manager issue resolved
by Caz Yokoyama
Could you summarize the procedure? I am trying to run virt-manager on Fedora
11 with Xen-3.5-unstable and Jeremy's Dom0
(git://git.kernel.org/pub/scm/linux/kernel/git/Jeremy/xen.git). I am
wondering what option should be good on make on xen-3.5-unstable. I did
Make xen tools
Make install-xen install-tools
What else I need do?
Booting dom0 is fine.
-caz
_____
From: xen-devel-bounces(a)lists.xensource.com
[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Fasiha Ashraf
Sent: Tuesday, October 27, 2009 4:49 AM
To: Cole Robinson; xen
Cc: Fedora Xen; virt-tools-list(a)redhat.com
Subject: [Xen-devel] Virt-manager issue resolved
I have got para-virt option enabled by installing vm using through http. the
problem was, i was trying to install it from DVD. Now the issue is it
doesn't find the file on the givern location although i can access them from
the same location in browser. PFA, the screen shots for the problem.
Regards
Fasiha Ashraf
--- On Mon, 26/10/09, Cole Robinson <crobinso(a)redhat.com> wrote:
From: Cole Robinson <crobinso(a)redhat.com>
Subject: Re: [virt-tools-list] Unable to complete install: 'Domain not
found: xenUnifiedDomainLookupByName
To: "Fasiha Ashraf" <feehapk(a)yahoo.co.in>
Cc: virt-tools-list(a)redhat.com, bderzhavets(a)yahoo.com, "Xen users"
<james.harper(a)bendigoit.com.au>, "Fedora Xen" <fedora-xen(a)redhat.com>
Date: Monday, 26 October, 2009, 7:08 PM
On 10/26/2009 09:24 AM, Fasiha Ashraf wrote:
> It seem that its trying to install HVM guest that is not possible using
virt-manager.
> But you can see from the attached screen shot that virt type option is
disabled and i can't select paravirt from it. what should i do?
> here's the log .virt-manager/virt-manager.log
>
Please include the other information I asked for:
virsh --connect xen:/// capabilities
virsh --connect xen:/// version
- Cole
> [Mon, 26 Oct 2009 16:11:51 virt-manager 3019] DEBUG (DistroInstaller:119)
DistroInstaller location is a local file/path: /dev/sr0
> [Mon, 26 Oct 2009 16:12:01 virt-manager 3019] DEBUG (DistroInstaller:119)
DistroInstaller location is a local file/path: /dev/sr0
> [Mon, 26 Oct 2009 16:12:01 virt-manager 3019] DEBUG (create:877) Default
storage path is: /var/lib/libvirt/images/f.img
> [Mon, 26 Oct 2009 16:12:01 virt-manager 3019] DEBUG (VirtualDisk:737) Path
'/var/lib/libvirt/images' is target for pool 'default'. Creating volume
'f.img'.
> [Mon, 26 Oct 2009 16:12:17 virt-manager 3019] DEBUG (DistroInstaller:119)
DistroInstaller location is a local file/path: /dev/sr0
> [Mon, 26 Oct 2009 16:12:17 virt-manager 3019] DEBUG (create:877) Default
storage path is: /var/lib/libvirt/images/f.img
> [Mon, 26 Oct 2009 16:12:17 virt-manager 3019] DEBUG (VirtualDisk:737) Path
'/var/lib/libvirt/images' is target for pool 'default'. Creating volume
'f.img'.
> [Mon, 26 Oct 2009 16:12:17 virt-manager 3019] DEBUG (create:1516) Creating
a VM f
> Type: xen,hvm
> UUID: 01f35eb7-fe09-c231-bfe0-1e9bfc6ff5a3
> Install Source: /dev/sr0
> OS: linux:fedora11
> Kernel args: None
> Memory: 512
> Max Memory: 512
> # VCPUs: 1
> Filesize: 7.0
> [Mon, 26 Oct 2009 16:12:17 virt-manager 3019] DEBUG (create:1565) Starting
background install process
> [Mon, 26 Oct 2009 16:12:18 virt-manager 3019] DEBUG (Storage:950) Creating
storage volume 'f.img' with xml:
> <volume>
> <name>f.img</name>
> <capacity>7516192768</capacity>
> <allocation>7516192768</allocation>
> <target>
> <format type='raw'/>
> </target>
> </volume>
> [Mon, 26 Oct 2009 16:13:08 virt-manager 3019] DEBUG (Storage:973) Storage
volume 'f.img' install complete.
> [Mon, 26 Oct 2009 16:13:10 virt-manager 3019] DEBUG (Guest:724) Creating
guest from:
> <domain type='xen'>
> <name>f</name>
> <currentMemory>524288</currentMemory>
> <memory>524288</memory>
> <uuid>01f35eb7-fe09-c231-bfe0-1e9bfc6ff5a3</uuid>
> <os>
> <type arch='x86_64'>hvm</type>
> <loader>/usr/lib/xen/boot/hvmloader</loader>
> <boot dev='cdrom'/>
> </os>
> <features>
> <acpi/><apic/><pae/>
> </features>
> <clock offset="utc"/>
> <on_poweroff>destroy</on_poweroff>
> <on_reboot>destroy</on_reboot>
> <on_crash>destroy</on_crash>
> <vcpu>1</vcpu>
> <devices>
> <emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
> <disk type='file' device='disk'>
> <source file='/var/lib/libvirt/images/f.img'/>
> <target dev='hda' bus='ide'/>
> </disk>
> <disk type='block' device='cdrom'>
> <source dev='/dev/sr0'/>
> <target dev='hdc' bus='ide'/>
> <readonly/>
> </disk>
> <interface type='bridge'>
> <source bridge='eth0'/>
> <mac address='00:16:36:08:9e:36'/>
> </interface>
> <input type='tablet' bus='usb'/>
> <graphics type='vnc' port='-1'/>
> <console type='pty'/>
> <sound model='es1370'/>
> </devices>
> </domain>
>
> [Mon, 26 Oct 2009 16:13:10 virt-manager 3019] DEBUG (netdevhelper:176)
Adding net device vif3.0 fe:ff:ff:ff:ff:ff /sys/class/net/vif3.0 (bridge:
None)
> [Mon, 26 Oct 2009 16:13:12 virt-manager 3019] DEBUG (engine:187) Tick is
slow, not running at requested rate.
> [Mon, 26 Oct 2009 16:13:13 virt-manager 3019] DEBUG (engine:187) Tick is
slow, not running at requested rate.
> [Mon, 26 Oct 2009 16:13:14 virt-manager 3019] DEBUG (engine:187) Tick is
slow, not running at requested rate.
> [Mon, 26 Oct 2009 16:13:15 virt-manager 3019] DEBUG (engine:187) Tick is
slow, not running at requested rate.
> [Mon, 26 Oct 2009 16:14:46 virt-manager 3019] DEBUG (netdevhelper:138)
Removing physical net device vif3.0 from list.
> [Mon, 26 Oct 2009 16:14:46 virt-manager 3019] DEBUG (opticalhelper:205)
Optical device removed: /org/freedesktop/Hal/devices/net_fe_ff_ff_ff_ff_ff
> [Mon, 26 Oct 2009 16:14:46 virt-manager 3019] DEBUG (error:76) Uncaught
Error: Unable to complete install: 'POST operation failed: xend_post: error
from xen $
> Traceback (most recent call last):
> File "/usr/share/virt-manager/virtManager/create.py", line 1575, in
do_install
> dom = guest.start_install(False, meter = meter)
> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628, in
start_install
> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628, in
start_install
> return self._do_install(consolecb, meter, removeOld, wait)
> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 726, in
_do_install
> self.domain = self.conn.createLinux(install_xml, 0)
> File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1077, in
createLinux
> if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
> libvirtError: POST operation failed: xend_post: error from xen daemon:
<Fault 3: 'f'>
> '
> [Mon, 26 Oct 2009 16:16:38 virt-manager 3019] DEBUG (engine:377) window
counter decremented to 0
> [Mon, 26 Oct 2009 16:16:38 virt-manager 3019] DEBUG (engine:385) Exiting
app normally.
>
>
>
> Fasiha Ashraf
>
> --- On Mon, 26/10/09, Cole Robinson <crobinso(a)redhat.com> wrote:
>
> From: Cole Robinson <crobinso(a)redhat.com>
> Subject: Re: [virt-tools-list] Unable to complete install: 'Domain not
found: xenUnifiedDomainLookupByName
> To: "Fasiha Ashraf" <feehapk(a)yahoo.co.in>
> Cc: virt-tools-list(a)redhat.com, bderzhavets(a)yahoo.com, "Xen users"
<james.harper(a)bendigoit.com.au>, "Fedora Xen" <fedora-xen(a)redhat.com>
> Date: Monday, 26 October, 2009, 5:58 PM
>
> On 10/26/2009 06:48 AM, Fasiha Ashraf wrote:
>> Hi all
>> I am facing this error while installing Guest VM on FC11 using
virt-manager
>> Unable to complete install '<class 'libvirt.libvirtError'> Domain not
found: xenUnifiedDomainLookupByName
>> Traceback (most recent call last):
>> File "/usr/share/virt-manager/virtManager/create.py", line 1575, in
do_install
>> dom = guest.start_install(False, meter = meter)
>> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628,
in start_install
>> return self._do_install(consolecb, meter, removeOld, wait)
>> File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 726,
in _do_install
>> self.domain = self.conn.createLinux(install_xml, 0)
>> File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1077, in
createLinux
>> if ret is
>> None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
>> libvirtError: Domain not found: xenUnifiedDomainLookupByName
>> '
>> What should i do to avoid it? please help!
>> Boris! How did you create PV guests using virt-manager i am following
your article
>>
http://bderzhavets.wordpress.com/2009/08/20/setup-libvirt-0-7-0-6-xen-3-4-1-
dom0-on-to-fedora-11-64-bit/#comment-623
>> PFA, a screen-shot of the virt-manager
>>
>> Regards,
>> Fasiha Ashraf
>>
>
> CCing fedora-xen list.
>
> Rather than a screenshot, can you include:
>
> ~/.virt-manager/virt-manager.log
> virsh --connect xen:/// capabilities
> virsh --connect xen:/// version
>
> Thanks,
> Cole
_____
Yahoo! India has a new look. Take a sneak peek
<http://in.rd.yahoo.com/tagline_metro_2/*http:/in.yahoo.com/trynew> .
14 years, 5 months
problems with F11 domU on a centos 5 host
by Eric Doutreleau
hi
i m trying to use a F11 xen guest on a centos 5 machine. the guest is
fully virtualized
and from time to time i found my guest completely unresponsive.
it eating all his cpu and the only way i found to get it back is to
shutdown it.
Has anybody already seen that kind of problem?
on the host i have xen-3.0.3-80.
Thanks in advance for any help
14 years, 5 months