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

Re: [Xen-users] How to specify a VMID to resume in


  • To: "Jun OKAJIMA" <okajima@xxxxxxxxxxxxxxxxxx>
  • From: "Jayesh Salvi" <jayeshsalvi@xxxxxxxxx>
  • Date: Sat, 1 Apr 2006 09:51:28 -0600
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 01 Apr 2006 15:53:23 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hRyAkqpfj63J1uf1pJovBM3yLFoQMIhVFFpsvYOfAofVqBedFg80R0wuueHSfDwAOlAZ7q1GS5iZft9B945jjwTc6mKyiTxotpujEC1EP9/mBH+g2GxSpxND0sYykbPVClU8wOmAV1PLAU06ita9hQrCWVG9SD4uZ3qFUkWSh1Q=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


1. How to specify a VMID to resume in?
   Can you specify which vmid to resume in?
   For example, what I want to do is like this?
   # xm save 1 debian.chk
   # xm restore debian.chk 1  <- here you usually resume this in dom2,
                               not 1 as it used to be.
                               I want resume debian.chk in dom1!.


2. About Xen live migration where both PC have same disk image.
   Assume PC_A and PC_B both have very same /XEN/Debian.img, but
   inode num, type of FS, etc,,, are different.
   I ask you that if I do live-migration fromm PC_A to PC_B,
   can I resume the image without using iSCSI or NBD?
   I mean, when the VM stays on PC_A, it mounts /XEN/Debian.img on PC_A's HDD,
   and after it migrates to PC_B, it mounts /XEn/Debian.img on PC_B HDD.
   Is this possible?

AFAIU, this is not possible. The file handles opened by the OS on PC_A correspond to inodes on the file system on PC_A. When the VM is migrated to PC_B, the inodes refered in the file handles are no longer found (or are wrong inodes). So the VM will hang or give some unpredictable behavior. It is necessary that the storage should be visible at the device node level on PC_A and PC_B, hence ISCSI or AOE or cluster FS will be needed.

3. How to fork "after resumed function" inside VMs?
   Is this possible to do suspending from inside of DomU?
   It is like this:
   [Dom3]# /bin/suspend.sh
   ---------------------
   suspend.sh:
     #!/bin/sh
     /usr/sbin/xm save /mnt/NFS/dom0/XEN/$DOM_NAME/suspend.img
     [here suspends]
     /etc/init.d/dhcpc restart
     [After resumed, you get dhcp re-run automatically.]
   ---------------------



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users



--
Jayesh
------------------------------------------------------------------------
Everything you can imagine is real
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.