Fwd: Memory offset in domU
by Huffen Doback
---------- Forwarded message ----------
From: Huffen Doback <huffen.doback(a)gmail.com>
Date: Sun, Feb 12, 2012 at 1:14 AM
Subject: Memory offset in domU
To: Huff Doback <huffen.doback(a)gmail.com>
Cc: xen-users(a)lists.xensource.com
I'm running Xen-3.0 on CentOs 5.7 x86_64. When I run free -tm in a
DomU the total amount of RAM is never what's defined in the vm .cfg.
In some OS's free reports less than what's configured, and in others
it reports that there's more. What can I do to make the vm see the
correct amount of RAM that's been allocated for it?
11 years, 10 months
Memory offset in DomUs
by Huffen Doback
I'm running Xen-3.0 on CentOs 5.7 x86_64. When I run *free -tm* in a DomU
the total amount of RAM is never what's defined in the vm .cfg. In some
OS's *free* reports less than what's configured, and in others it reports
that there's more. What can I do to make the vm report the correct amount
of RAM that's been allocated for it?
11 years, 10 months
blocked domain
by Gergely Buday
Hi,
I tried to install a fedora onto my xen domain with virt-manager. At
the third attempt I reached some success:
# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3005 1 r----- 6236.5
MobileOtp 1024 1 0.0
MobileOtp2 1024 1 0.0
MobileOtp3 3 800 1 -b---- 338.4
But, when trying to issue
# xm console MobileOtp3
the terminal becomes stuck and only killing the xenconsole process frees it.
The installation itself did not run, how can I step ahead?
- Gergely
11 years, 10 months
Fedora 16 [3.1.0-7.fc16.i686] and Xen [4.1.2] problem
by Rajeshwar Singh Janwar
Hi All,
I have installed Fedora 16.
[root@RSJ boot]# uname -a
Linux RSJ 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686
i386 GNU/Linux
[root@RSJ boot]#
Then:
1. yum intsall xen
xen got install successfully but it could not update grub entry with xen.
2. [root@RSJ boot]# xl info
libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running?
failed to stat /var/run/xenstored.pid: No such file or directory
cannot init xl context
[root@RSJ boot]#
3. Then i manually updated the grub [entry = /etc/grub.d/20_linux_xen], now
grub.conf:
----------------/etc/grub2/grub.conf--------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686' --class fedora
--class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root
a61dbabc-0d61-41cd-a2c9-3857ae9ee060
echo 'Loading Linux 3.1.0-7.fc16.i686 ...'
linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root
ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet
SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap
LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)'
--class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root
a61dbabc-0d61-41cd-a2c9-3857ae9ee060
echo 'Loading Linux 3.1.0-7.fc16.i686 ...'
linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root
ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet
SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap
LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.i686.img
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
menuentry 'Fedora Linux, with Xen 4.1.2 and Linux 3.1.0-7.fc16.i686'
--class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root
a61dbabc-0d61-41cd-a2c9-3857ae9ee060
echo 'Loading Xen 4.1.2 ...'
multiboot /xen-4.1.2.gz placeholder
echo 'Loading Linux 3.1.0-7.fc16.i686 ...'
module /vmlinuz-3.1.0-7.fc16.i686 placeholder
root=/dev/mapper/vg_rsj-lv_root ro rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root
KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0
rd.lvm.lv=vg_rsj/lv_swap
LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
module /initramfs-3.1.0-7.fc16.i686.img
}
menuentry 'Fedora Linux, with Linux 3.1.0-7.fc16.i686 (recovery mode)'
--class fedora --class gnu-linux --class gnu --class os {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root
a61dbabc-0d61-41cd-a2c9-3857ae9ee060
echo 'Loading Linux 3.1.0-7.fc16.i686 ...'
linux /vmlinuz-3.1.0-7.fc16.i686 root=/dev/mapper/vg_rsj-lv_root
ro single rd.md=0 rd.dm=0 rd.lvm.lv=vg_rsj/lv_root KEYTABLE=us quiet
SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 rd.lvm.lv=vg_rsj/lv_swap
LANG=en_US.UTF-8
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.1.0-7.fc16.i686.img
}
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (loader) (on /dev/sda1)" --class windows
--class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 9C78AAFE78AAD5F4
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type
the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
--------------------------------------------------------------------------
After reboot and booting with XEN kernel, it show:
elf_xen_note_check: ERROR: Will only load images built for the generic
loader or Linux images
******************************************
Panic on CPU0
Could not set up DOM0 guest OS
*** ***************************************
Is linux kernel 3.1.0-7.fc16.i686 comes with XEN kernel modules compiled ?
What is going wrong, any pointers ?
Regards,
Raj
11 years, 10 months
Re: [Fedora-xen] Failed to bring up network interface
by Konrad Rzeszutek Wilk
On Sat, Feb 04, 2012 at 02:48:17AM +0400, Sergey A. Pechiony wrote:
> -----Original Message-----
> From: Konrad Rzeszutek Wilk [mailto:konrad.wilk@oracle.com]
> Sent: Friday, February 03, 2012 8:18 PM
> To: Sergey A. Pechiony
> Cc: xen(a)lists.fedoraproject.org
> Subject: Re: [Fedora-xen] Failed to bring up network interface
>
>
> > Can you attach the dmesg and proc/interrupts when run under baremetal and
> > when run under Xen please?
>
> ok. May be you can find something.
Yup, it is as I was thinking. Your machine does not export an ACPI
table. And we use that to figure out the interrupt layout.
If there is an option in the BIOS, see if you can turn ACPI on.
11 years, 10 months
virt-manager / install fedora image
by Gergely Buday
Hi,
I would like to install a fedora as a subdomain operating system on my
fedora box. virt-manager throws the following error:
libvirtError: POST operation failed: xend_post: error from xen daemon:
(xend.err 'Error creating domain: Disk image does not exist:
/home/gergoe/Downloads/Fedora-16-x86_64-Live-Security.iso')
I wonder as /home/gergoe/Downloads/Fedora-16-x86_64-Live-Security.iso
exists. What can be the problem?
- Gergely
11 years, 10 months
Failed to bring up network interface
by Sergey A. Pechiony
I have a problem with network interfaces after installing Xen.
[root@dom0 ~]# uname -r
3.2.2-1.fc16.i686.PAE
[root@dom0 ~]# yum list | grep xen-hyper
xen-hypervisor.i686 4.1.2-2.fc16
@updates
With default kernel system works perfectly. But after booting with xen
kernel
# dmesg | grep eth
[ 15.860121] e100 0000:00:04.0: eth0: addr 0xfeafe000, irq 9, MAC addr
00:e0:81:21:53:96
[ 15.884513] e100 0000:00:05.0: eth1: addr 0xfeafd000, irq 5, MAC addr
00:e0:81:21:53:97
[ 18.506585] udevd[458]: renamed network interface eth1 to em2
[ 18.568406] udevd[457]: renamed network interface eth0 to em1
# lsmod | grep e100
e100 36014 0.
mii 13311 1 e100
# lspci | grep Ethernet
00:04.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro
100 (rev 08)
00:05.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro
100 (rev 08)
# /etc/init.d/network status
Configured devices:
lo em1 em2
Currently active devices:
lo
# ifup em1
RTNETLINK answers: Function not implemented
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Failed to bring up em1.
# ifconfig em1
em1 Link encap:Ethernet HWaddr 00:E0:81:21:53:97..
inet addr:192.168.129.16 Bcast:192.168.131.255
Mask:255.255.252.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000.
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
# ifconfig em1 192.168.129.1
SIOCSIFFLAGS: Function not implemented
Network interface has network address but can't to bring up.
I don't understand that happens. A difference between loadings only in irq.
20,21 for default kernel and 5,9 for xen kernel. But 5 and 9 irq is not used
anywhere more.
11 years, 10 months
Failed to bring up network interface
by Sergey A. Pechiony
I have a problem with network interfaces after installing Xen. Network
interface has network address but can't to bring up.
[root@dom0 ~]# uname -r
3.2.2-1.fc16.i686.PAE
[root@dom0 ~]# yum list | grep xen-hyper
xen-hypervisor.i686 4.1.2-2.fc16
With default kernel system works perfectly. But after booting with xen
kernel
# dmesg | grep eth
[ 15.860121] e100 0000:00:04.0: eth0: addr 0xfeafe000, irq 9, MAC addr
00:e0:81:21:53:96
[ 15.884513] e100 0000:00:05.0: eth1: addr 0xfeafd000, irq 5, MAC addr
00:e0:81:21:53:97
[ 18.506585] udevd[458]: renamed network interface eth1 to em2
[ 18.568406] udevd[457]: renamed network interface eth0 to em1
# lsmod | grep e100
e100 36014 0.
mii 13311 1 e100
# lspci | grep Ethernet
00:04.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro
100 (rev 08)
00:05.0 Ethernet controller: Intel Corporation 82557/8/9/0/1 Ethernet Pro
100 (rev 08)
# ifup em1
RTNETLINK answers: Function not implemented
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Failed to bring up em1.
# ifconfig em1 192.168.129.1
SIOCSIFFLAGS: Function not implemented
I don't understand that happens. A difference between loadings only in irq.
20,21 for default kernel and 5,9 for xen kernel. But 5 and 9 irq is not used
anywhere more.
11 years, 10 months