[Fedora-xen] xen broke my system

2011-12-06 Thread Carlos Felipe Santacruz
This is what happened: normally ran 'yum install xen' and that gave 
no problems, but then i rebooted to get to the xen kernel, it resulted 
on black screen (could change consoles with Alt + F2 etc.) so i 
rebooted and tried the regular 3.1.2 kernel with same results. 
uninstalled xen with 'yum history undo' so it would also remove all 
dependencies then rebooted. nothing. 
anyone knows what could have caused this? 
im running f16 x86_64 on an asus g74sx-bbk7(core i7-2630qm, geforce gtx560m, 
8GB DDR3 ram) --
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] Installing Fedora 16 in Xen PV DomU under Debian Squeeze

2011-12-06 Thread Pasi Kärkkäinen
On Mon, Dec 05, 2011 at 10:27:04PM -0500, Konrad Rzeszutek Wilk wrote:
 On Sun, Dec 04, 2011 at 02:36:46PM -0500, David Howland wrote:
  Hi, I recently installed Fedora 16 in a Xen PV DomU and since I didn't 
  find a lot of information online, I wanted to share my procedure in case 
  it helps anyone else.  My Dom0 is Debian Squeeze, which uses a kernel at 
  version 2.6.32.
 
 The pygrub issues you described were fixed and I believe are now in 
 Xen 4.1.2. 


F16 PV domU pygrub support patches are in xen-unstable, but not yet in 
xen-4.1-testing.hg

Fedora's xen 4.1.2 rpms do have those pygrub patches included, though.

-- Pasi

 But that won't work for you since Debian is 4.0 I think.
 I think they can be back-ported. Would you be up for trying to back-port
 those patches and submit them to Debian Squeeze?
 
 (Just search for M A Young and pygrub on this mailing list - he posted
 the patches two months ago or so).
 
  
  Because I deal with varying operating systems and because I prefer 
  fine-grained control over configuration, I don't use virt-* tools or GUI 
  front ends.  I wanted to install the OS the regular way.
  
  The basic install path was to use the live DVD to install in an HVM, 
  then switch to a PV with pygrub.  I want to use pygrub so that I don't 
  have to copy kernels and init images around everytime the OS updates itself.
  
  pygrub caused me some trouble because the version in my system can't 
  handle GPT partitions, grub2, or ext4 - all of which are used by default 
  in Fedora 16.
  
  What follows isn't perfect, but should be useful for people who want to 
  install Fedora 16 in an environment similar to mine.  Note that I'm 
  using x86_64 with VT-x, and that matters.  Use your brain, and be 
  careful to recognize newlines that email may introduce.
  
  
  
  
  *** Create hard drive image ***
  dom0# mkdir -p /img/fedora
   - you can put it anywhere you want!  This is just what I used.
  dom0# cd /img/fedora
  dom0# dd if=/dev/zero of=xen-fedora-16.img bs=1M count=2
  
  *** Download DVD image ***
  dom0# cd /img/fedora
  dom0# wget 
  http://download.fedoraproject.org/pub/fedora/linux/releases/16/Fedora/x86_64/iso/Fedora-16-x86_64-DVD.iso
  
  *** Create HVM config file ***
  dom0# cd /etc/xen
  dom0# (edit fedora-16.hvm)
  -/etc/xen/fedora-16.hvm--
  name = 'fedora-16'
  vif = [ 'mac=aa:00:00:50:02:f0, bridge=xenbr0' ]
  disk = [
   'file:/img/fedora/xen-fedora-16.img,hda,w',
   'file:/img/fedora/Fedora-16-x86_64-DVD.iso,hdc:cdrom,r',
  ]
  boot = 'dca'
  
  kernel = '/usr/lib64/xen-4.0/boot/hvmloader'
  device_model = '/usr/lib64/xen-4.0/bin/qemu-dm'
  builder = 'hvm'
  
  memory = 2048
  shadow_memory = 8
  vcpus = 2
  #pae = 1
  acpi = 1
  apic = 1
  vnc = 1
  vncconsole = 1
  sdl = 0
  stdvga = 0
  usbdevice = 'tablet'
  serial = 'pty'
  
  on_poweroff = 'destroy'
  on_reboot   = 'destroy'
  on_crash= 'destroy'
  -
  
  *** Install Fedora 16 ***
  dom0# xm create fedora-16.hvm
  domU# (connect to new VM with a VNC viewer - Quickly!)
  domU# (press TAB at boot menu to edit the kernel command line)
  domU# (add nogpt to command line, without quotes)
  domU# (install fedora)
   - disable lvm
   - in partition list, change /boot to ext2 instead of ext4
   - after install finishes, let it shut down
  dom0# (edit fedora-16.hvm)
   - comment out 
  'file:/img/fedora/Fedora-16-x86_64-DVD.iso,hdc:cdrom,r',
  dom0# xm create fedora-16.hvm
  domU# (complete install)
   - should be at desktop now
  
  *** Enable SSH ***
  domU# (open root shell)
  domU# systemctl enable sshd.service
  domU# systemctl start sshd.service
  
  *** Make a grub menu ***
  domU# cd /boot/grub
  domU# (edit menu.lst, using /boot/grub2/grub.cfg as a guide)
   - be sure to use your own kernal, init, and UUIDs from your own 
  grub2 config
  -/boot/grub/menu.lst-
  -/etc/xen/fedora-16.hvm--
  timeout 3
  default 0
  
  title Fedora Linux
  root (hd0,0)
  kernel /vmlinuz-3.1.2-1.fc16.x86_64 
  root=UUID=fc5702b1-65d9-426d-81d7-e52f31cb6a4a ro rd.md=0 rd.lvm=0 
  rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 
  LANG=en_US.UTF-8
  initrd /initramfs-3.1.2-1.fc16.x86_64.img
  
  title Fedora Linux (recovery mode)
  root (hd0,0)
  kernel /vmlinuz-3.1.2-1.fc16.x86_64 
  root=UUID=fc5702b1-65d9-426d-81d7-e52f31cb6a4a ro single rd.md=0 
  rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb 
  rd.luks=0 LANG=en_US.UTF-8
  initrd /initramfs-3.1.2-1.fc16.x86_64.img
  -
  
  *** Make PV domU ***
  domU# (shutdown VM)
  dom0# cd /etc/xen
  dom0# (edit fedora-16.pv)
  -/etc/xen/fedora-16.pv---
  name = 'fedora-16'
  vif = [ 'mac=aa:00:00:50:02:f0, bridge=xenbr0' ]
  disk = [
   

Re: [Fedora-xen] xen broke my system

2011-12-06 Thread M A Young
On Tue, 6 Dec 2011, Carlos Felipe Santacruz wrote:

 This is what happened: normally ran 'yum install xen' and that gave no
 problems, but then i rebooted to get to the xen kernel, it resulted on black
 screen (could change consoles with Alt + F2 etc.) so i rebooted and tried
 the regular 3.1.2 kernel with same results. uninstalled xen with 'yum
 history undo' so it would also remove all dependencies then rebooted.
 nothing.
 anyone knows what could have caused this?
 im running f16 x86_64 on an asus g74sx-bbk7(core i7-2630qm, geforce gtx560m,
 8GB DDR3 ram)

Xen runs the grub2 update script to give you an option to boot the kernel 
with the hypervisor. This is different from the way Fedora handles grub2 
configuration when you add a kernel, as their method doesn't work with 
xen. However there is a risk that you will lose configuration options if 
the Fedora system hasn't set up grub2 correctly. This did happen while 
Fedora 16 was in beta as grub2 overwrote a configuration file when you 
updated it until they fixed it, but I am not sure if this is still a 
problem.

Michael Young
--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen

Re: [Fedora-xen] xen broke my system

2011-12-06 Thread Pasi Kärkkäinen
On Tue, Dec 06, 2011 at 07:14:57AM -0800, Carlos Felipe Santacruz wrote:
This is what happened: normally ran 'yum install xen' and that gave no
problems, but then i rebooted to get to the xen kernel, it resulted on
black screen (could change consoles with Alt + F2 etc.) so i rebooted and
tried the regular 3.1.2 kernel with same results. uninstalled xen with
'yum history undo' so it would also remove all dependencies then rebooted.
nothing.
anyone knows what could have caused this?
im running f16 x86_64 on an asus g74sx-bbk7(core i7-2630qm, geforce
gtx560m, 8GB DDR3 ram)

So read your grub settings from /boot/grub2/ and figure out if you have some 
wrong or leftover entries there.

-- Pasi

--
xen mailing list
xen@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/xen