Todd Deshane | 1 Oct 02:36
Picon
Gravatar

Re: Increase size of file-based diskimage (with MBR, partitions + fs)

On Tue, Sep 30, 2008 at 6:54 PM, Henrik Holmboe <henrik <at> holmboe.se> wrote:
> Hello all,
>
> I have been struggling with a problem for some time and haven't quite
> found a working solution. Tried to search the mailing list and other
> online resources but still got stuck.
>
> What I have: a diskimage stored in the fs on dom0. The image is not
> just a filesystem, but contains a full disk presented to the domU. Thus
> it contains an MBR, partition table and a single ext3 filesystem. No
> LVM is not used in the domU. Both dom0 and domU is Centos 5.2.
>
> What I want to accomplish: increase the size of this diskimage, resize
> the partition and filesystem.
>

There are a couple ways that are slight variations on the things that you
have tried that have worked for me.

Simplest way, if it works, is to simply create a "disk image" with dd
and append it onto your disk image.

Something like:

dd if=/dev/zero of=space.img bs=1M seek=1024k count=1
cat space.img >> your_small_image.img

Then what you have is unallocated space at the end of your
image file, which you can then resize the partitions the way
you want to get them to use the newly added space
(Continue reading)

Luke S Crawford | 1 Oct 02:40
Favicon

Re: Problem using Xen - SATA

"Daniel Bojczuk" <danielbojczuk <at> gmail.com> writes:
> I have an Slackware 12.1 running on Intel Core2Quad, 4 Gb RAM. (The result
> of dmesg is attached on this e-mail)
...
> But when I try to use the xen kernel, he can't find /dev/sda1. I think
> that's because it doesn't reconized the sata controller.

Well, you are running without an initrd.  Now, this is the way most slackware
people I know like it, and I can't say they are wrong.  However, like any
time you are running without an initrd, you must first insure that all drivers
you need to boot the box to the point where it can mount the disk are compiled
into the kernel, not compiled as modules (Y not M, or in menuconfig, *)  

(also note, most sata drivers these days are under SCSI rather than under
ide in menuconfig)  

The thing is that most distros these days expect an initrd, so the default
kernel compile tends to compile most things, even most disk drivers as
modules.  

If I remember correctly, you want

make linux-2.6-xen-config configmode=MENUCONFIG
make linux-2.6-xen-build
make linux-2.6-xen-install
kris | 1 Oct 03:37

Xen 3.2 + HVM + Windows

Hi list,

I have been looking around trying to find info on installing win2k3 on  
a remote server using an iso. I have been finding scattered docs, some  
of which say use sdl, some say rdesktop and some vnc.

Does anyone have any resources for doing it with 3.2, preferably on  
ubuntu hardy.

Thanks.
Todd Deshane | 1 Oct 06:32
Picon
Gravatar

Re: xm save -c

On Sat, Sep 27, 2008 at 2:48 PM, Nick Couchman <Nick.Couchman <at> seakr.com> wrote:
> I'm tossing around the idea of creating a sort of "VDI" setup with Xen.  One
> thing that I would like to do in this scenario is "checkpoint" the user's VM
> at a certain interval so that if something bad happens they can go right
> back to the latest point time - maybe a half-hour earlier or something like
> that.  I was trying to use "xm save -c <Domain> <File>" to do this, but the
> domain pauses while the contents of memory are saved off to disk.  I was
> wondering if anyone knows of a way to "checkpoint" without pausing the
> domain?  I can't do something like an hourly checkpoint if the domain pauses
> every hour - the users on the domUs would kill me.  Is "seamless
> checkpointing" something that's being developed, something that can be done
> another way, or something I should just give up on now?
>

It is on the TODO list (last updated Jan 08):
http://wiki.xensource.com/xenwiki/XenTodoList

I think the LVM snapshots should be a good way.

Another idea is to use a ZFS domain.

I'll look into this more soon.

A quick google search and remembering back to a previous Xen summit,
there have been attempts. I don't know the status of them though.

Feel free to float around ideas and discussion about this type of thing
on the xen-research list.

We should also do a better search of the summits and mailing lists
(Continue reading)

Franz Von Hahn | 1 Oct 11:12
Picon
Favicon

AW: Increase size of file-based diskimage (with MBR, partitions + fs)

Hey

I had the same problem some time ago. But here is a solution how to do that, but it's a bit tricky!

REQUIREMENT: THE SYSTEM PARTITION ON THE IMAGE MUST BE THE FIRST PARTITION, AFTER THAT THERE MUST BE ONLY
SWAP PARTITIONS!!!!

This setup would work, there should be no risk at all:
Partition 1 on the image: /
Partition 2 on the image: swap space

This setup WONT'T WORK, YOU LOOSE YOUR DATA:
Partition 1 on the image: /
Partition 2 on the image: swap
Partition 3 on the image: /var or /somethingelse

So what you have to do:

a) create a backup of the diskimage that you want to modify
b) shutdown domU
c) add extra space to the image by entering: dd if=/dev/zero bs=1M count=1024 >> /path/to/diskimage    (this
would add another 1024M to the DomU image)
d) boot domU
e) disable swap partitions by entering: swapoff /dev/xvda2 (or what corresponds to your setup)
f) fdisk /dev/xvda (or what corresponds to your setup)
g) press p + enter so see the whole disksetup
h) delete the second swap partition by entering d + enter and then 2 + enter
i) delete the system partion by entering d + enter and then 1+enter
j) recreate the system partition with the same start cylinder than the older one but an end-cylinder bigger
than the old cylinder value. press n <enter> p <enter> 1 <enter> and then enter the values
(Continue reading)

Nemeth, Tamas | 1 Oct 11:36
Picon

Re: Panic on PCU 0

Hi

2008. 10. 1, szerda keltezéssel 11.16-kor Jakub Andrys ezt írta:
> Because i don't know how to save log before start syslog, so i try write it:

Kernel (and maybe Xen too) messages cat be redirected to a serial port,
and you can save those messages with another machine. I don't know if
there are better solutions, maybe someone elsa can help you. I also
don't know how to redirect Xen's output to a serial console, but the
kernel messages can be redirected by passing an extra commandline
parameter to the kernel like this: "console=ttyS0,9600n8"

> Xen kernel: 32-bit, PAE, lsb
> Dom0 kernel: 32-bit, lsb, paddr 0x100000 -> 0x634000
> Mismatch between Xen and DOM kernel

That's the point: You need a PAE kernel for your PAE supervisor, which
means, you have to recompile the kernel with the "Processor type and
features -> High Memory Support" parameter set to 64GB.

I hope this helped you

Tamas
Henrik Holmboe | 1 Oct 13:14
Picon
Favicon

Re: [solved] Increase size of file-based diskimage (with MBR, partitions + fs)

Hello again,

and thanks for your answers. I reviewed the differences in your methods
and mine, and noticed two big differences. One was the way that you
appended extra space at the end of the diskimage, and the second was how
you repartitioned the diskimage afterwards. See below.

Short version: use fdisk instead of sfdisk.

++ 01/10/08 00:54 +0200 - Henrik Holmboe:

[...]

>What I have: a diskimage stored in the fs on dom0. The image is not
>just a filesystem, but contains a full disk presented to the domU. Thus
>it contains an MBR, partition table and a single ext3 filesystem. No 
>LVM is not used in the domU. Both dom0 and domU is Centos 5.2.
>
>What I want to accomplish: increase the size of this diskimage, resize
>the partition and filesystem.

[...]

>Ok, so now on to what I have tried and failed (with a known good image
>as verified above):
>
> # Extend the size of diskimage from 1.5GB to 3GB
>
> > ls -la xvda.img 
> -rw-r--r-- 1 root root 1610612736 Oct  1 00:16 xvda.img
(Continue reading)

Nick Couchman | 1 Oct 14:18
Favicon

Re: xm save -c

Thanks, Todd,
I'm less concerned about the disk and more about Xen being able to do the memory save "seamlessly" so that
there isn't any pause for the user while the save is completed (or at least not near as long as it is now).  The
disk would be nice, too, although I'm using OCFS2 and not LVM or ZFS for my domUs, so I'm not sure how much that
would help me.  Any chance it could be implemented with Qcow, as well?  VMware does something like this and
then quickly changes out the disk that the VM sees from the original to the qcow image.

-Nick

>>> On 2008/09/30 at 22:32, "Todd Deshane" <deshantm <at> gmail.com> wrote:
On Sat, Sep 27, 2008 at 2:48 PM, Nick Couchman <Nick.Couchman <at> seakr.com> wrote:
> I'm tossing around the idea of creating a sort of "VDI" setup with Xen.  One
> thing that I would like to do in this scenario is "checkpoint" the user's VM
> at a certain interval so that if something bad happens they can go right
> back to the latest point time - maybe a half-hour earlier or something like
> that.  I was trying to use "xm save -c <Domain> <File>" to do this, but the
> domain pauses while the contents of memory are saved off to disk.  I was
> wondering if anyone knows of a way to "checkpoint" without pausing the
> domain?  I can't do something like an hourly checkpoint if the domain pauses
> every hour - the users on the domUs would kill me.  Is "seamless
> checkpointing" something that's being developed, something that can be done
> another way, or something I should just give up on now?
>

It is on the TODO list (last updated Jan 08):
http://wiki.xensource.com/xenwiki/XenTodoList 

I think the LVM snapshots should be a good way.

Another idea is to use a ZFS domain.
(Continue reading)

Andrea Brugiolo | 1 Oct 14:43
Picon

Re: Xen DomU Communication Problems [SOLVED for me]

On Mon, Sep 29, 2008 at 02:09:54PM +0200, Andrea Brugiolo wrote:
> On Tue, Feb 19, 2008 at 11:56:35AM -0500, Sarah Scheibe wrote:
> > Thank you, that helped at least part of the problem.
> > I no longer get an error message when trying to create the domU, and it  
> > appears that the device is getting passed in. However, dmesg on the domU  
> > gives me
> >
> > "PCI: Enabling device 0000:00:00.0 (0000 -> 0003)
> > scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
> >         <Adaptec 29160 Ultra160 SCSI adapter>
> >         aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
> >
> > Unable to handle kernel NULL pointer dereference at 0000000000000078 RIP:
> >  [<ffffffff880043a2>] :scsi_mod:scsi_calculate_bounce_limit+0x15/0x49
> > PGD 20750067 PUD 20751067 PMD 0
> > Oops: 0000 [1] SMP
> > CPU 0
> > Modules linked in: aic7xxx scsi_transport_spi scsi_mod
> > Pid: 510, comm: modprobe Not tainted 2.6.18-6-xen-amd64 #1
> > RIP: e030:[<ffffffff880043a2>]  [<ffffffff880043a2>]  
> > :scsi_mod:scsi_calculate_bounce_limit+0x15/0x49"
> >
> > .... followed by a call trace, etc. The device does not show up in /dev.
> >
> > I will keep at it
> 
> Hi all
> 
> I have exactly the same problem with the same kernel; dom0 is Debian
> etch and domU is Debian lenny.
(Continue reading)

Peter Van Biesen | 1 Oct 15:01
Picon

Re: SOLVED Xen 3.2 on debian dom0 2.6.18 x86_64 running Windows XP SP3 : gplpv 0.9.11pre11 not working

Hi all,

I saw a message on the list yesterday saying the gplpv driver could have a problem with lvm. I tried the gplpv
driver without lvm and all works perfectly !

Kindest regards,

Peter.

On Wednesday 27 August 2008 12:29:35 Peter Van Biesen wrote:
> Hi Dustin,
> 
> I used a windows XP with SP2 EN to reinstall my domu. I installed the 0.9.11pre13 package, this produces the
same errors as with my other windows XP version. I also tried the 0.9.10 version, which produced also the
same results.
> 
> I'm at a loss here. Apparently the problem isn't the windows version. 
> 
> My collegue-vmware specialist is laughing his ass off at the moment :-( . 
> 
> Kindest regards,
> 
> Peter.
> 
> On Friday 22 August 2008 17:38:14 Dustin Henning wrote:
> > Peter,
> > 	Regarding installing SP1a and SP2, it may be possible to go directly
> > to SP2 (unless you are referring to.net 2.0 service packs and not WinXP
> > service packs), but I don't remember for sure, and this wouldn't affect your
> > problem, it's just a thought for future reference.
(Continue reading)


Gmane