Quantcast
Channel: Q & A Forum
Viewing all 170 articles
Browse latest View live

Installing Xen with UEFI

$
0
0
Hi everyone,

I am trying to install xen on uefi amd64 hosts and I think I need some help.

I read a 2014 post on the forum on the subject (http://www.xenproject.org/help/questions-and-answers/xen-uefi.html) as well as a few other discussions on the Internet about xen and uefi, but I could not find any straightfoward tutorial.

Unfortunately, neither the ubuntu procedure (https://help.ubuntu.com/community/Xen) nor the debian procedure (https://wiki.debian.org/Xen or http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Installing_the_Xen_Project_Software) to install xen from apt-get seem to work with uefi (tried on Ubuntu Vivid and Debian Jessie, respectively, on two different machines).

After rebooting, I do see xen on the grub menu ("Debian GNU/Linux , with Xen 4.4-amd64.efi and Linux 3.16.0-4-amd64)" but whatever option I choose, either the machine reboots to the grub menu, or I have the following message :
"Loading Xen 4.4-amd64.efi...
error: invalid arch independent ELF magic
Loading Linux 3.16.0-4-amd64...
error: you must load the kernel first
Loading initial ramdisk
error: you must load the kernel first

Press a key to continue"
"

Any idea on how to sort this out?

Thanks for your help,

Lancelot

Xen Server network issues

$
0
0
Hello, I have installed Xen Server 7.0 on a machine at home. However I immediately noticed that when I switch on the Xen Server machine immediately the network at home gets crippled.

For example using speed test I get 10Mbps with wireless. The moment I switch Xen Server machine this goes down to just 1Mbps and then even 0.5Mbps. I have to switch off the Xen Server machine and it pops up to 10Mbps.

Please note that I have not even add a single VM. This is just switching Xen Server after installation. I tried to install Xen Server 6.5 to see if this was a problem with the new version. However I still get the same problem.

At first I thought it might be a problem with the motherboard. However I installed a clean Ubuntu Server on the machine and with this I have no problems.

I tried to search the problem on the Internet but all I found is that it might be an issue with Intel cards. I do not use a card, I use network connection with motherboard. However motherboard is Intel.

Has anyone encountered this problem and knows how to solve it?

How to configure repository for xen-linux-system?

$
0
0
Hello,

I have Debian 8.4 and I wanted to install it as described here: http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Installing_the_Xen_Project_Software

Unfortunately, when I execute "sudo apt-get install xen-linux-system", it cannot find it. What should I do to install it correctly? I assume I should modify something in repository configuration but what exactly?

Thank you!

-----------------

myusername@mysysname:~$ cat /etc/issue
Debian GNU/Linux 8 \n \l

myusername@mysysname:~$ cat /etc/debian_version
8.4
myusername@mysysname:~$ su -
Password:
root@mysysname:~# sudo apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
lvm2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@mysysname:~# pvcreate /dev/sda7
  Device /dev/sda7 not found (or ignored by filtering).
root@mysysname:~# sudo apt-get -P install xen-linux-system
E: Command line option 'P' [from -P] is not known.
root@mysysname:~# sudo apt-get install xen-linux-system
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'xen-linux-system-amd64' instead of 'xen-linux-system'
The following extra packages will be installed:
  bridge-utils grub-xen-bin grub-xen-host xen-hypervisor-4.4-amd64
  xen-linux-system-3.16.0-4-amd64 xen-system-amd64 xen-utils-4.4
  xen-utils-common xenstore-utils
Recommended packages:
  xen-hypervisor-4.4
The following NEW packages will be installed:
  bridge-utils grub-xen-bin grub-xen-host xen-hypervisor-4.4-amd64
  xen-linux-system-3.16.0-4-amd64 xen-linux-system-amd64 xen-system-amd64
  xen-utils-4.4 xen-utils-common xenstore-utils
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,914 kB of archives.
After this operation, 13.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://httpredir.debian.org/debian/ jessie/main bridge-utils amd64 1.5-9 [32.8 kB]
Err http://httpredir.debian.org/debian/ jessie/main xen-hypervisor-4.4-amd64 amd64 4.4.1-9+deb8u4
  404  Not Found [IP: 212.110.161.69 80]
Err http://httpredir.debian.org/debian/ jessie/main xen-utils-4.4 amd64 4.4.1-9+deb8u4
  404  Not Found [IP: 212.110.161.69 80]
Err http://httpredir.debian.org/debian/ jessie/main xen-system-amd64 amd64 4.4.1-9+deb8u4
  404  Not Found [IP: 212.110.161.69 80]
Err http://httpredir.debian.org/debian/ jessie/main xen-linux-system-3.16.0-4-amd64 amd64 3.16.7-ckt25-1
  404  Not Found [IP: 212.110.161.69 80]
Err http://httpredir.debian.org/debian/ jessie/main xenstore-utils amd64 4.4.1-9+deb8u4
  404  Not Found [IP: 46.43.34.31 80]
Get:2 http://httpredir.debian.org/debian/ jessie/main grub-xen-bin amd64 2.02~beta2-22+deb8u1 [911 kB]
Err http://httpredir.debian.org/debian/ jessie/main xen-utils-common all 4.4.1-9+deb8u4
  404  Not Found [IP: 46.43.34.31 80]
Get:3 http://httpredir.debian.org/debian/ jessie/main xen-linux-system-amd64 amd64 3.16+63 [5,070 B]
Get:4 http://httpredir.debian.org/debian/ jessie/main grub-xen-host amd64 2.02~beta2-22+deb8u1 [1,405 kB]
Fetched 2,354 kB in 0s (2,590 kB/s)
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/x/xen/xen-hypervisor-4.4-amd64_4.4.1-9+deb8u4_amd64.deb  404  Not Found [IP: 212.110.161.69 80]

E: Failed to fetch http://httpredir.debian.org/debian/pool/main/x/xen/xenstore-utils_4.4.1-9+deb8u4_amd64.deb  404  Not Found [IP: 46.43.34.31 80]

E: Failed to fetch http://httpredir.debian.org/debian/pool/main/x/xen/xen-utils-common_4.4.1-9+deb8u4_all.deb  404  Not Found [IP: 46.43.34.31 80]

E: Failed to fetch http://httpredir.debian.org/debian/pool/main/x/xen/xen-utils-4.4_4.4.1-9+deb8u4_amd64.deb  404  Not Found [IP: 212.110.161.69 80]

E: Failed to fetch http://httpredir.debian.org/debian/pool/main/x/xen/xen-system-amd64_4.4.1-9+deb8u4_amd64.deb  404  Not Found [IP: 212.110.161.69 80]

E: Failed to fetch http://httpredir.debian.org/debian/pool/main/l/linux/xen-linux-system-3.16.0-4-amd64_3.16.7-ckt25-1_amd64.deb  404  Not Found [IP: 212.110.161.69 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Xen with Debian and encrypted partitions

$
0
0
Hello,

Please let me know if I can (and if yes, how should I do it) configure Debian (which I will use to contain Xen Hypervisor) with all the partitions encrypted.

You have partition structure defined here: http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Installing_Debian

I know that Debian supports encryption but I don't know if Xen Hypervisor properly works with encrypted hard disk (all partitions encrypted). And if yes, if it has any special requirements about setting partitions.

Thank you!

Anyone interesting on Python Programming?

$
0
0
Hi guys!

I believe there are lots of things to learn in this ambit. I'm thinking that I should attend to some conferences or events about it. I'm from L.A and I'm willing to know and learn from people.

There is this Learn Python programming Study Group of 4 weeks that I want to attend, so I let more information about it.

The program is organize in the next way:

Week 4 Topics:


- Review of Python basics, data types, data structures

- OOP,

- overloading


What you need:


• A laptop that can connect to the internet.

• Python 3.X Interpreter and Pycharm IDE.


Note: You are expected to have these two Software installed and configured in your Laptop, in order to do the Programming Homework during the week and prior to attending the Meetup event.

What means Xen?

$
0
0
I mean, I know what it is, but that is the meaning of usin that 3 letters? is just something that came up to the creators?

A few general questions and problems, need help please.

$
0
0
Been doing this for two week now without any help. I have a lot of questions, please bear with me.

I've been using Xubuntu for two years, transitioning from Win7. Current System is a i7 6700K, 16GB DDR4 3000, Nvidia GTX 970, & combined 3 TB HD space. I'd like to use Xen to virtualize OS's (XP, Unix, Debian, Arch, Edubuntu (for the kids)) for learning and experimentation on a Home network with 2-3 PC's. The goal is to VNC into the VM's from (Ipad, Iphone, Raspberry Pi, Laptop, PC) and use guest OS's for specific tasks (Graphics Editing OS, Media Server OS, SteamOS/Gaming WinBox (If possible), Learning Linux/Unix). I'd also like to create an Edubuntu VM for the kids that I can push Netflix to, something they can't screw up.


I'm using "http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Basic_Xen_Project_Commands" as my starting point. Hypervisor works, LVM Storage is good (I've created 10 Logical Volumes for my projects), network bridging is working. I installed Virtual Machine Manager at first. Then created a Debian PV (auto install), then used configs with SDL, then did VNC w/Remmina to VM, and am finally on OpenXenManager. All under Xubuntu on the localhost machine for the Hypervisor. All VM's I tried were linux, all my windows VM's are failing out.

A would greatly appreciate any help with the questions below as I'm at the point where I'm ready to call xen quits. Thank You in advance!!

Questions:

1) I don't understand why you'd use xen tools to auto install a Debian PV on the fly? Is it just a one use case? How do you pull it up again next login? Does it create a config somewhere that I can launch it from? Going off the guide it doesn't look like they use the automatic PV guest OS again. I'd like to if I could find a way to do this. Is there an alternative automatic guest install guide that's up to date?

2) I'm okay with command line but would alternatively like a GUI for some of this. What's the best software w/ a GUI for Xen Management?

3) I can't get OpenXenManager to work on xubuntu. It keeps giving me "[Errno 111] Connection refused". I've tried using "localhost", 80, root & rootpass; but it never works. I changed the settings in xend-config.sxp; (xend-http-server yes), (xend-port 80), (xend-address ''), (dom0-min-mem 196). Nothing works, i don't get it. Changed host name to local IP, nothing. Is there a guide somewhere for this or for modifying the Xen Configs? I know this is not an OpenXenManager forum but if someone uses it and has some insight to get me started I'd appreciate it.

4) I created a config and stored it in /etc/xen/win7.cfg. I was able to "xl create" and VNC into machine to start install but at about the same point in install, everytime, it crashes and I'm kicked out of the VNC session. i don't beleive there is a problem with the OS image. I don't currently remember the fault indicated in console as I'm now having problems getting xl create working. Can someone tell me if maybe my settings are wrong. On a side note: I tried using the beginners guide settings and keep getting an error on the "kernel =" line, xen says I don't need this for windows and should stick with default hardware. How is this guide not up to date? Is there a better guide for windows7 install, updated for 2016? Thanks.

----------------------------------Windows7.cfg----------------------------------------------

#kernel = "/usr/lib/xen-4.0/boot/hvmloader"
name = "Windows7"
builder = 'hvm'
vcpus = 4
maxvcpus = 4
videoram = 32
usb = 1
usbdevice = ['tablet']
memory = 8192
maxmem = 10240

disk = [ 'phy:/dev/vg0/Win7Pool,hda1,w', 'file:/media/user/StorageHD/ISO/Windows/Windows 7/Microsoft Windows 7 SP1 X64.iso,hdc1:cdrom,w']

boot="dc"
pae = 1
nx = 1
acpi = 1
apic = 0
vif = [ 'type=ioemu, bridge=xenbr0' ]
localtime=1
sdl=0
vnc=1
vncconsole=1
serial='pty'

----------------------------------Windows7.cfg----------------------------------------------

5) My current issue today, which I probable should have started with, is that my "xl create" no longer creates. I, of course, performed a standard restart of the server but still get the following in console. Any ideas would be appreciated.

sudo xl create /etc/xen/windows7.cfg
Parsing config from /etc/xen/windows7.cfg
libxl: error: libxl_dm.c:1504:device_model_spawn_outcome: domain 1 device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1324:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:1608:kill_device_model: Device Model already exited
libxl: info: libxl.c:1710:devices_destroy_cb: forked pid 2771 for destroy of domain 1



Any updated guides or advise you guys have would really help. I'm really interested in getting this working. Thanks again for the assistance. -Chris

Network setting problem of Xen...

$
0
0
Hello, everyone~
I'm a newbie for Xen so I was setting up Xen first time.
But there was a problem during its bridge setting with some guide pages of Xen wiki(https://wiki.xenproject.org/wiki/Network_Configuration_Examples_(Xen_4.1%2B)) and Ubuntu(https://help.ubuntu.com/community/Xen).

Even though I just followed the guides, after enabling NAT, I could not avoid the critical error which it makes me lose connection to internet. When I typed "ping www.google.com", it even could not use dns server and it was unreachable to other PC in the same local network.

I attach some information of my desktop(of problem).
I hope anyone gives me some advise.

Thanks in advance.

- uname -a
Linux nickeys-Linux-Machine 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

- ifconfig
eth0 Link encap:Ethernet HWaddr 1c:1b:0d:24:0f:6d
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14455 errors:0 dropped:8 overruns:0 frame:0
TX packets:219 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1655944 (1.6 MB) TX bytes:33701 (33.7 KB)
Interrupt:16 Memory:df100000-df120000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:18519 errors:0 dropped:0 overruns:0 frame:0
TX packets:18519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1371012 (1.3 MB) TX bytes:1371012 (1.3 MB)

xenbr0 Link encap:Ethernet HWaddr ce:fe:13:61:bc:41
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1e1b:dff:fe24:f6d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14155 errors:0 dropped:50 overruns:0 frame:0
TX packets:219 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1381954 (1.3 MB) TX bytes:32381 (32.3 KB)


- cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo xenbr0
iface lo inet loopback

#iface eth0 inet static
# address 10.150.4.89
# netmask 255.255.255.0
# gateway 10.150.4.1
# dns-nameservers 10.2.2.10
#
ifcae eth0 inet manual

iface xenbr0 inet static
bridge_ports eth0
address 192.168.1.2
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.1

- iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

- brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.1c1b0d240f6d no eth0

How to access DomU from Dom0?

$
0
0
Hello, I was wondering; if I have physical access to the Dom0 then is there a way how the VGA output shown on the monitor can be switched from the Dom0 to the DomU?

I have read about "VGA Passthrough". That said I cannot get this to work because it seems my hardware, although it supports hardware virtualization (AMD-V) it does not have an IOMMU (is this possible?).

I have therefore looked at the possible config options from here:
http://wiki.xen.org/wiki/Xen_Configuration_File_Options

Here one of the options is "stdvga". I set this to "1". However when switching on the DomU nothing happened.

I was wondering if switching from Dom0 to DomU?

I know about VNC and I did manage to connect to the DomU via VNC. However I was wondering if there was something which performs better than VNC.

Xen Guest VM shutdown hook

$
0
0
I am trying to create a script that automates creating virtual machines and corresponding networks in my environment. Is there a way to trigger a shell script or python script when a Guest VM is shutdown? Something like a shut down hook for all VMs? I have a set of activities that needs to be done on shutdown of a virtual machine. I did research around a lot but was not fruitful. Any help or advice appreciated

Cannot Start VM after finish virt-install

$
0
0
Hi all,

I have issue with xen 4.4 in CentOS 6.8.

After virt-install i'm cannot start to my VM, for log error in libxl.

For package libxl after installed in my machine but still problem. Could you help me if any missing for my step installation?

For installation i'm refer ini https://wiki.centos.org/HowTos/Xen/Xen4QuickStart/Xen4Libvirt

For error log :

[ ~]# xl create /var/lib/libvirt/images/TestVM.img
libxl: error: libxl_utils.c:354:libxl_read_file_contents: file /var/lib/libvirt/images/TestVM.img is far too large
Failed to read config file: /var/lib/libvirt/images/TestVM.img: File too large


package libxl already install

[ ~]# rpm -qa |grep libxl
libvirt-daemon-driver-libxl-1.3.0-1.el6.x86_64


Thank you for your response.

Sorry for my english not good.

Regards

Andrian

cannot start vm, getting error in pygrub

$
0
0
When i'm executing
xl create /etc/xen/config_vyos.cfg
to start vm i'm getting an error:
Parsing config from /etc/xen/config_vyos.cfg
libxl: error: libxl_bootloader.c:637:bootloader_finished: bootloader failed - consult logfile /var/log/xen/bootloader.14.log
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: bootloader [4148] exited with error status 1
libxl: error: libxl_create.c:1144:domcreate_rebuild_done: cannot (re-)build domain: -3
libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 14
libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy guest with domid 14
libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 14 failed
/var/log/xen/bootloader.14.log file:
Traceback (most recent call last):
  File "/usr/lib/xen-4.6/bin/pygrub", line 874, in
    raise RuntimeError, "Unable to find partition containing kernel"
RuntimeError: Unable to find partition containing kernel
my config file:
name="pvvyos"
vcpus=1

memory=2048

disk=['file:/home/my/vyos-1.1.7-i586-virt.iso,hda1,w',
      'phy:/dev/mapper/xen--srv-vyos,hda2,w']

vif=['bridge=xenbr0']
extra="console=hvc0"

on_poweroff='destroy'
on_crash='restart'
on_reboot='restart'

bootloader="pygrub"
Am i doing something wrong?
What i need to do to get my vm working?
Any suggestions?

Guest "Failed to start Raise network interfaces"

$
0
0
I have set up a guest within the xen 4.8 hypervisor using the following command:
xen-create-image --verbose --memory=1024mb --passwd --size=4.5gb --swap=0.5gb --dist=xenial --dhcp --lvm=Dom0-vg --hostname=DomU1 --vcpus=1 --pygrub
During boot, the guest says
Failed to start Raise network interfaces
and I'm completely lost. I've read a lot of tutorials, FAQs and other posts on this topic, but nothing works and the more I read the more I become confused. Where do I start solving this problem?

Having Trouble Adding XenServer to XenCenter

$
0
0
Hello all! I am a new user of XenServer and XenCenter and I have looked in so many places trying to figure out my problem. Any help is appreciated!

Background:
On my Windows machine, I have installed XenCenter and the XenServer 7 ISO file from the main website.

On this same Windows Machine, I have set up a XenServer through VMWare with the ISO file. In my XenServer (which is on my VMWare on Windows), it provides me an IP 192.168.xx.xxx.
In XenCenter, when I try to add my XenServer with this IP address, it gives me an error stating 'Unable to connect to server, the connection was refused. Check that xenserver is configured correctly on '192.168.xx.xxx'

Tried solutions:
In VMWare in Xenserver, I have tried using the local command shell and using ping 192.168.xx.xxx which seems to work. But in my Windows powershell, pinging the same XenServer IP address is unsuccessful.

In the Xenserver's local command shell, I've also tried
-service xapi status: it shows that it is active (running)
-service xapi restart: successful since it returns [ OK ]
-killall xapi && xe-toolstack-restartservice: also successful as all services returns [ OK ]

If anyone has any suggestions on how to fix this error, it would be greatly appreciated!

Asus P6T WS Professional DRAM tables issue

$
0
0
I am new here and I have a question. I have an old workstation (Asus P6T WS Professional - X58) board I want to re-purpose for xen. What is bothering me is that while searching in the VT-d How-To article (and the web in general) I found out that almost all of the similar boards (P6T6 WS Revolution, P6T, P6T Deluxe etc) with mine used to have problems with the IOMMU DRAM tables. I wonder wether the workaround that was implemented lately and which is referenced in the documentation is able to overcome these problems or else if someone can confirm that this board having the latest BIOS is working with VT-d support (for PCI passthrough).

If not is there any unofficial BIOS I could use to overcome the issue and if yes, is there any way I could get it or make it with a little help?

I still can not afford to test it myself as it is my main pc as of now and without PCI pass-through there is no meaning trying to set it up in the first place. Also being new to xen and starting with something problematic will be a huge leap.

Thank you in advance.

Console DomU Problem

$
0
0
Hello,

I im running two VMS on xen and i want to atach the console to my VMs. everything seems to be ok but i get this type of console:

(initramfs) help
Built-in commands:
------------------
. : [ alias break cd chdir command continue echo eval exec exit
export false getopts hash help let local printf pwd read readonly
return set shift test times trap true type ulimit umask unalias
unset wait [ [[ ash awk basename blockdev cat chmod chroot chvt
clear cmp cp cut deallocvt df dnsdomainname du dumpkmap echo
egrep env expr false fbset fdflush fgrep find grep gunzip gzip
hostname ifconfig ip kill ln loadfont loadkmap ls mkdir mkfifo
mknod mkswap mktemp modinfo more mount mv openvt pidof printf
ps pwd readlink reset rm rmdir sed seq setkeycodes sh sleep sort
stat static-sh stty switch_root sync tail tee test touch tr true
tty umount uname uniq wc wget which yes zcat
I can do anything, i dont know if this is right or I went wrong somewhere. i learned also that Xen introduced pygrub software in order to boot domUs without dom0, i tried to include bootloader = '/usr/lib/xen-4.4/bin/pygrub' in my gust.cfg but it does not change anything,

can anyne help?

Need some assistance regarding IT field

$
0
0
Well, I am new at it and I just wanted to become a part of IT field but I don't how to consider that fact and how to start at it, I have got various knowledge of IT field but I have not done any practical up till yet and I want to carry on for it as I have found many opportunities for IT field and I want to carry this thing out although Assignment Service UK have helped me more while solving my IT assignments and they have given me proper assistance of it.

Compiling Xen from Source

$
0
0
Hello, I was following https://wiki.xenproject.org/wiki/Compiling_Xen_From_Source to build from source but I could not get Dom0 running. (This would be the unstable version)

I'm on Ubuntu 16.04 x86_64.

My problem: When I run
$sudo xl list
(or any xl commands for that matter) I get the error:
xencall: error: Could not obtain handle on privileged command interface: No such file or directory
libxl: error: libxl.c:102:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context


I couldn't find a solution anywhere. I have tried running
$/etc/init.d/xencommons start
which doesn't fix the problem. I noticed when i ran
$service --status-all
it shows:
[ - ] xencommons
[ - ] xendomains
[ - ] xendriverdomain
[ + ] xen-watchdog

but when I run
$service xencommons status
it says it is active?
● xencommons.service - LSB: Start/stop xenstored and xenconsoled
   Loaded: loaded (/etc/init.d/xencommons; bad; vendor preset: enabled)
   Active: active (exited) since Wed 2017-06-14 09:41:40 PDT; 46min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1267 ExecStart=/etc/init.d/xencommons start (code=exited, status=0/SUCCESS)
    Tasks: 0
   Memory: 0B
      CPU: 0
What I have done so far from the beginning:
- $git clone git://xenbits.xen.org/xen.git

- made sure I had CONFIG_XEN_DOM0=y in my /usr/src/linux-headers-4.4.0-78-generic/.config file

- made sure I apt-get the dependencies (seems like there is a conflict in
$apt-get install make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev
between libjpeg62-dev and libvncserver-dev ? maybe a bug?)

- ran:
$./configure
$make world
$sudo make install
$update-grub
- rebooted my system
(I don't see anything else after I reboot that tells me that the Xen hypervisor is activated, it is just a normal login)

.cfg file

When creating VM with virt-manager on Xen under Debian 9 Stretch receive the error: 'operation failed: Failed to balloon domain0 memory'

$
0
0
I posted the following question on serverfault and there people told there is a bug on XEN, its true ?

https://serverfault.com/questions/858039/when-creating-vm-with-virt-manager-on-xen-under-debian-9-stretch-receive-the-err

Im on a Thinkpad E431 with i7 processor and [MemTotal: 11679824 kB]
Im with Debian 9 Stretch with kernel 4.9.0-3-amd64 without LVM
Im used to VirtualBox that is simple and functional but I need now the nested vm feature that there is not in VirtualBox.
I need only a Windows 10 Enterprise VM with a lot of containers and others VMs nested to use as development environment.
The nested vm feature is present on Xen and its how Im installing it most complete possible on a fresh Debian:

su
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install linux-headers-$(uname -r) build-essential
apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware blueman
apt-get install tmux tree galculator net-tools sudo
sudo adduser myuser sudo
uname -r
[ -d /sys/firmware/efi ] && echo Xen fail under UEFI || echo Xen works under BIOS
sudo apt-get install firmware-linux-nonfree e2fslibs-dev
sudo shutdown -r now
sudo apt-get install uml-utilities vde2 bridge-utils samba openvswitch-switch
sudo adduser myuser vde2-net
sudo adduser root vde2-net
sudo shutdown -r now
# The following packages replaces libvirt-bin:  libvirt-daemon-system libvirt-dev libvirt-clients
sudo apt-get install qemu qemu-block-extra qemu-guest-agent kvm qemu-kvm qemu-system qemu-system-arm qemu-system-common qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-sparc qemu-system-x86 qemu-user binfmt-support qemu-user-static qemu-utils libvirt-daemon libvirt-daemon-system libvirt-dev libvirt-clients libvirt-daemon-system libvirt-clients virtinst virt-viewer seabios sgabios ovmf debootstrap xen-system-amd64 xen-linux-system-amd64 xen-hypervisor-4.8-amd64 libxen-4.8 libxen-dev libxenstore3.0 xen-utils-4.8 xen-utils-common xenstore-utils xen-tools virt-manager
sudo ln -sf /usr/bin/qemu-* /usr/lib/xen-4.8/bin/
sudo adduser myuser libvirt
sudo adduser myuser libvirt-qemu
sudo adduser root libvirt
sudo adduser root libvirt-qemu


As you can see im installing the packages indicated on:
libvirtError: operation failed: could not query memory balloon allocation
and to test the another recommendation there i tried install the damnsmalllinux with 1000 of RAM and the error was the same.
The error is:

Unable to complete install: 'operation failed: Failed to balloon domain0 memory'
Traceback (most recent call last):

File "/usr/share/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2288, in _do_async_install guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 461, in start_install doboot, transient)
  File "/usr/share/virt-manager/virtinst/guest.py", line 396, in _create_guest self.domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3523, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirtError: operation failed: Failed to balloon domain0 memory
Im searching a lot and trying improve the script above for more than a week before ask here.
I was with another error before making, as you can see on script above, the links of qemu files inside xen folder.
What im doing wrong ?
Viewing all 170 articles
Browse latest View live