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

unable to forward pci device

$
0
0
I'm trying to setup vyos in xen vm to route my traffic with it, but i have an issue doing this.
I configured ubuntu server 16.04.2, after this i installed xen from repos and configured vyos vm, but then i found, that i can't forward pci network card to it.
I'm doing this like this:
finding BDF of pci devices
lspci |grep Ethernet
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 05)
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
(i need to forward 01:00.2 and 01:00.3 to vm)

lsmod | grep pciback
returns nothing, then i do
modprobe pciback
modprobe: FATAL: Module pciback not found in directory /lib/modules/4.4.0-87-generic
then i tried
modprobe xen-pciback
, and after this

lsmod | grep pciback
xen_pciback            61440  0
then i'm doing
xl pci-assignable-add 01:00.2
xl pci-assignable-add 01:00.3

xl pci-assignable-list
0000:01:00.2
0000:01:00.3
then i add
pci=['01:00.2','01:00.3']
to vm config file and trying to launch it:

xl create /vyos/vyos.cfg 
Parsing config from /vyos/vyos.cfg
libxl: error: libxl_pci.c:1098:libxl__device_pci_add: PCI device 0000:01:00.2 cannot be assigned - no IOMMU?
libxl: error: libxl_create.c:1427:domcreate_attach_pci: libxl_device_pci_add failed: -1
libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 2
libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy guest with domid 2
libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 2 failed


after this i googled for IOMMU and after some searches i tried to check my cpu for virtualization:
grep --color vmx /proc/cpuinfo
returned nothing
lscpu said that Virtualization type: none

but intel says that my processor have vt-x and vt-d here


And i don't understand, what did i missed or did wrong?

additional info:

xl info |grep version
version                : #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017
xen_version            : 4.6.5
vm config file at the end:
builder = "hvm"
vcpus = 2
memory = 2048
disk=['phy:/vyos/vyos.img,xvda,w']
#disk=['phy:/vyos/vyos.img,xvda,w','file:/hdd/vyos-1.1.7-i586-virt.iso,ioemu:hdc:cdrom,r']
name = 'vyos2'
#vif = ['script=vif-bridge, bridge=br-eth0','script=vif-bridge, bridge=br-eth1']
pci=['01:00.2','01:00.3']


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

#vnc config
vnc=1
vnclisten = '0.0.0.0'
vncpasswd="mypasswd"
vncconsole=1
vncunused=0

#vnc port, if vncdisplay=35, then port= 5935
vncdisplay=35
#boot from cdrom(d) or hdd(c)
boot='c'

Unable to connect to xend: Connection refused. Is xend running?

$
0
0
Os environment is ubuntu12.04
i install xen by the commond apt-get install xen-hypervisor-4.1-amd64, during the installation, a wired message "No volume groups found" appears.
When i create vm, it fails with the message "Unable to connect to xend: Connection refused. Is xend running?". Howerver the commod "xm list" works and i'm sure service xend has started already.
who can help me ?

Struggling to install the Windows PV Drivers

$
0
0
Hello guys,

I am using 4.9 to host a Windows 10 guest. I have noticed that the performance is rather poor which is why I tried to install the Windows PV Drivers: https://www.xenproject.org/developers/teams/windows-pv-drivers.html

I basically downloaded them and installed them while driver signing was off. The problem is that I can't boot anymore, it crashes when the Windows logo gets visible. I suspect that specifically the last of the 5 drivers, xenvbd.tar, is causing the crash, since when only installing the other 4 drivers it does not crash. They don't seem to get me a huge performance boost though.

For now I am using these drivers: http://wiki.univention.com/index.php?title=Installing-signed-GPLPV-drivers
They seem to be pretty old and although the performance way better with them I am hoping that the Windows PV Drivers can bring the performance up even more.

My config file looks like this:

name = "win10"
uuid = "f0763702-6e85-44f0-826a-b9d6436b1393"
maxmem = 8192
memory = 8192
vcpus = 8
cpus = "4-11"
pae = 1
acpi = 1
apic = 1
viridian = 1
rtc_timeoffset = 0
localtime = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "destroy"
device_model_override = "/usr/lib/xen/bin/qemu-system-i386"
keymap = "de"
kernel = "/usr/lib/xen/boot/hvmloader"
vif = [ "mac=00:16:3e:c2:73:f1,bridge=virbr0,script=vif-bridge" ]
pci = [ "0000:0a:00.0", "0000:0a:00.1", "0000:12:00.3"]
parallel = "none"
gfx_passthru=0
serial = "pty"
builder = "hvm"
disk = ['phy:/dev/vg0/win10,hda,w',]
audio = 1

What other info can I provide? Can anybody tell me what to do? Thanks!

Necessary to Learn Linux to become a DBA

$
0
0
I am Caitlin new member here, I have some concern actually I need some suggestion currently I am a writer and offering assignment writing you can say that I am an academic writer but now I am looking forward to switching in the field of Database Administration so my question is that is it necessary to learn Linux to become a Database Administrator? In fact, I am interested in learning and new technologies how Linux platform help me to achieve my target? I am hoping for the helpful replies.
Thanks

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

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.

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

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

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

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?

.cfg file

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)

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 ?

Xen kernel boot hangs up!

$
0
0
Hi,

I installed and updated a fresh OpenSUSE Leap 42.2 on my laptop wanting to try out Xen. Every thing installed fine and the I started and enabled libvirtd. When booting with the Xen hypervisor I get a quick glimpse of about a page of text then a black screen and the computer hangs up. Being a Xen newbie, I'm not sure how to start diagnosing the problem. Any help appreciated. Here's some info about my system:

It's a laptop with the Optimus dual graphics card gimmick
Virtualization enabled in bios
Dual boot with windows 10

The last line before the system hangs up during boot is:
(XEN) Xen is relinquishing VGA console
If I boot into recovery mode of the Xen kernel, the last line before system hangs is:
[ 2014..190809] EFI Variables Facility v0.08 2004-May-17
I also hooked up an external monitor but nothing is displayed there.

Thanks

unable to forward pci device

$
0
0
I'm trying to setup vyos in xen vm to route my traffic with it, but i have an issue doing this.
I configured ubuntu server 16.04.2, after this i installed xen from repos and configured vyos vm, but then i found, that i can't forward pci network card to it.
I'm doing this like this:
finding BDF of pci devices
lspci |grep Ethernet
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-LM (rev 05)
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.2 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.3 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
(i need to forward 01:00.2 and 01:00.3 to vm)

lsmod | grep pciback
returns nothing, then i do
modprobe pciback
modprobe: FATAL: Module pciback not found in directory /lib/modules/4.4.0-87-generic
then i tried
modprobe xen-pciback
, and after this

lsmod | grep pciback
xen_pciback            61440  0
then i'm doing
xl pci-assignable-add 01:00.2
xl pci-assignable-add 01:00.3

xl pci-assignable-list
0000:01:00.2
0000:01:00.3
then i add
pci=['01:00.2','01:00.3']
to vm config file and trying to launch it:

xl create /vyos/vyos.cfg
Parsing config from /vyos/vyos.cfg
libxl: error: libxl_pci.c:1098:libxl__device_pci_add: PCI device 0000:01:00.2 cannot be assigned - no IOMMU?
libxl: error: libxl_create.c:1427:domcreate_attach_pci: libxl_device_pci_add failed: -1
libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 2
libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy guest with domid 2
libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 2 failed


after this i googled for IOMMU and after some searches i tried to check my cpu for virtualization:
grep --color vmx /proc/cpuinfo
returned nothing
lscpu said that Virtualization type: none

but intel says that my processor have vt-x and vt-d here


And i don't understand, what did i missed or did wrong?

additional info:

xl info |grep version
version                : #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017
xen_version            : 4.6.5
vm config file at the end:
builder = "hvm"
vcpus = 2
memory = 2048
disk=['phy:/vyos/vyos.img,xvda,w']
#disk=['phy:/vyos/vyos.img,xvda,w','file:/hdd/vyos-1.1.7-i586-virt.iso,ioemu:hdc:cdrom,r']
name = 'vyos2'
#vif = ['script=vif-bridge, bridge=br-eth0','script=vif-bridge, bridge=br-eth1']
pci=['01:00.2','01:00.3']


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

#vnc config
vnc=1
vnclisten = '0.0.0.0'
vncpasswd="mypasswd"
vncconsole=1
vncunused=0

#vnc port, if vncdisplay=35, then port= 5935
vncdisplay=35
#boot from cdrom(d) or hdd(c)
boot='c'
Viewing all 170 articles
Browse latest View live