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

domU ping but no internet access

$
0
0
Hello,
I am a really beginner user with xen and this is my situation :

My dom0 and domU are configured with static network adresses (10.x.x.x)

My dom0 has acces to internet (wget, apt-get,...)
My dom0 can ping external adresses like google but cannot acces to services (port 80, apt,...)

I really don't know what is going wrong.

Can someone help me with my trouble?

Thanks

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

Problem with "smbios_firmware"

$
0
0
Hi,

I have to pass baseboard information to guest machine. As i understood it have to be done using smbios_firmware option in domain config. Only problem is that i don't know how to build that file.
Please give me some help on file structure or tools which i have to use to build one myself.

Thank you.

Do I have to say goodbye to Xen? :-(

$
0
0
My plan was to use Xen in order to have a software program I could play with without having to worry that it could crash the OS. I could always build a new one.

However this requires eclipse and thus Xorg.

Since I'm on a tight budget and like my computers silent and low-powered I have a AMD APU and thus my graphics "card" consists of a [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series].

So Xorg can't find a graphics driver and thus can't run unless I VGA passthrough my GPU.

Trying to do a VGA passthrough with "sudo xl pci-assignable-add 00:01.0 && sudo xl create -c etc/xen/ArkOS-Dev_PV.cfg" and then "sudo pci-assingnable-remove -r 00:01.0" results into seeing
my configuration do a Segmentation fault and core dump.

It looks like my dream is over.

:(

DomU can't detect Video Card

$
0
0
And yes, I already asked on the xen-users mailinglist (without getting a reply).

Dom0: Arch Linux

DomU: Arch Linux

The problem seems to be that the DomU can't find the Video Card.

inxi -F (DomU)

System:    Host: ArkOS_Dev Kernel: 4.2.5-1-ARCH x86_64 (64 bit) Console: tty 0 Distro: Arch Linux
Machine:   No /sys/class/dmi; using dmidecode: dmidecode is not installed.
CPU:       Single core AMD Athlon 5350 APU with Radeon R3 (-) cache: 2048 KB
           clock speeds: max: 2050 MHz 1: 2050 MHz 2: 2050 MHz 3: 2050 MHz
Graphics:  Card: Failed to Detect Video Card!
           Display Server: N/A drivers: i128,sis,voodoo,fbdev,ati,ark,glint,nv,mach64,neomagic,vesa,savage,vmware,trident,radeon,s3,siliconmotion,intel,tdfx,nouveau,openchrome
           tty size: 151x38 Advanced Data: N/A out of X
Network:   Card: Failed to Detect Network Card!
Drives:    HDD Total Size: 95.9GB (2.8% used) ID-1: /dev/xvda model: N/A size: 93.7GB
           ID-2: /dev/xvdb model: N/A size: 2.1GB
Partition: ID-1: / size: 86G used: 2.6G (4%) fs: ext4 dev: /dev/xvda
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 70 Uptime: 1 min Memory: 49.8/1997.5MB Init: systemd Client: Shell (bash) inxi: 2.2.28
inxi -F (Dom0)

System:    Host: hypervisor Kernel: 4.2.5-1-ARCH x86_64 (64 bit) Console: tty 0 Distro: Arch Linux
Machine:   Mobo: ASRock model: AM1H-ITX Bios: American Megatrends v: P1.20 date: 09/23/2014
CPU:       Single core AMD Athlon 5350 APU with Radeon R3 (-UP-) cache: 2048 KB speed: 2050 MHz (max)
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series]
           Display Server: N/A driver: N/A tty size: 151x38 Advanced Data: N/A out of X
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.2.5-1-ARCH
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: d0:50:99:4b:96:e1
Drives:    HDD Total Size: 120.0GB (6.5% used) ID-1: /dev/sda model: OCZ size: 120.0GB
Partition: ID-1: / size: 16G used: 5.3G (34%) fs: btrfs dev: /dev/sda2
           ID-2: /boot size: 511M used: 40M (8%) fs: vfat dev: /dev/sda1
           ID-3: swap-1 size: 2.15GB used: 0.01GB (0%) fs: swap dev: /dev/sda4
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 108 Uptime: 0 min Memory: 97.9/927.4MB Init: systemd Client: Shell (bash) inxi: 2.2.28
/etc/xen/Arkos-Dev_PV.cfg
name = 'ArkOS_Dev'
bootloader = "pygrub"
#kernel = "/mnt/arch/boot/x86_64/vmlinuz"
#ramdisk = "/mnt/arch/boot/x86_64/archiso.img"
#extra = "archisobasedir=arch archisolabel=ARCH_201511"
memory = 2048
vcpus = 3
disk = [ "format=raw, vdev=xvda, access=rw, target=/dev/vm_volumes/root.ArkOS_Dev",
         "format=raw, vdev=xvdb, access=rw, target=/dev/vm_volumes/swap.ArkOS_Dev"
       ]
vif = [ 'mac=00:16:3e:49:2b:a1,bridge=xenbr0' ]
root = "/dev/xvda rw"
lspci -v (Dom0)
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400 / R3 Series] (prog-if 00 [VGA controller])
sudo xl pci-attach 0 '00:01.0,permissable=1' (Dom0)
Unknown PCI BDF option: permissablelibxl: error: libxl_pci.c:1105:libxl__device_pci_add: PCI device 0:0:1.0 is not assignable
/etc/mkinit.conf (DomU)
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES="xen-blkfront xen-fbfront xen-netfront xen-kbdfront"

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H ' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

PV desktop DomU options?

$
0
0
I'm looking to use Xen on my laptop for interacting with one or more graphical desktop PVs. My question is what are the advantages and disadvantages to the different desktop interaction methods? Note that I'm trying to do this without X at all, or at least only involve X on some PVs which require it. Instead, I'd like to use Wayland/Weston with DRM if possible. I have intel i915 graphics and Intel snd_hda_intel audio (appear as PCI devices), but only PS/2 (serial) keyboard and touchpad, no USB. Xen 4.6.0 with XL.

Method 1:
Install Weston (and all its dependencies: mesa, cairo, xkbd, xcb/xlib, etc) and VNC/Spice/RDP clients (and all their dependencies) in the Dom0. Then I can connect to HVMs that use the emulated VGA adapter over VNC/Spice, and PVs using xen-fbfront or install the Weston Spice backend or a VNC server inside the PV.

This is the easiest option as Dom0 is the only domain that interacts with the hardware. I'll lose graphics acceleration but it might not be that bad with Weston and the Spice+QXL backend. However, I really don't want that much code (Weston, mesa, clients, etc) running in the Dom0 for performance and security reasons. I would feel better if most of the rendering code could be run in the DomU and the results passed-through over a well-defined interface like fbdev, DRM, or PCI (as in PCI passthrough).

Method 2:
Install DirectFB and DirectVNC in the Dom0 and use xen-fbfront (CONFIG_XEN_FBDEV_FRONTEND) in the PVs. This makes for a smaller Dom0 footprint, but is subject to a lot of the same limitations as method 1. Since both of those projects are rather unmaintained, and the Linux fbdev is becoming deprecated, I don't know how feasible it will be to get it working (and keep it working). Once again I'll lose graphics acceleration, and DirectFB and DirectVNC are still subject to compromise on the Dom0.

Method 3:
PCI passthrough graphics and audio into the PVs. I'll get graphics acceleration and audio, but I don't see any way to pass through a PS/2 keyboard and touchpad, so I'll have output but no input. Socat might be able to pass /dev/input/* into the PV over the network, but even if it works it seems like quite a hack. I'll also only be able to use one PV desktop at a time, and switching back to the Dom0 will be difficult, but I could use method 1 on the primary desktop DomU to connect to other DomUs, protecting the Dom0 and keeping it as minimal as possible.

Method 4:
Like method 2, but use http://wiki.xenproject.org/wiki/Paravirtualized_DRM instead of paravirtualized fbdev. This will theoretically give me graphics acceleration and DRM is better maintained. That wiki page only talks about troubleshooting and upstream status, however, and makes no mention of how to use paravirtualized DRM at all, and I can't find any mainline 4.2.3 kernel config/module that resembles Xen PV DRM. Keyboard and touchpad are also a problem as in method 3.

From this I gather that using a DomU as a desktop without going through the Dom0 (much) is a fairly uncommon thing. So is there any good solution? How are most people using Xen on desktop systems?

Updating DomU Guests on Ubuntu 14.04

$
0
0
I've installed xen 4.4 on Ubuntu 14.04.3. Dom0 and all the Guests are performing normally. My question is how to go about getting updates for the DomU guests.

When I run 'sudo apt-get update'

the update process runs as expected, going out and checking the various repos. However, whenever I run either 'sudo apt-get dist-upgrade' or 'sudo apt-get upgrade'

there are never any updates available to install. I'm certain this isn't the case - there ought to be at least a single update in the past two weeks. :)

Is there a different process to do an OS/package update on a DomU than on a standalone Ubuntu server?

Thanks,
Sam

Best way to install latest version?

$
0
0
Hi

I'm quite new to Linux but have recently re purposed a spare PC and put on a headless debian (8.2 Jessie) install, basically following the beginners guide (http://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide) down to where it's titled 'Installing the Xen Project Software'.

Now I know there's been some security issues and missing patches from releases etc so I'd really like to have the very latest stable and secure release of Xen, eg 4.6.1? as I'd also like to experience PVH in it's most stable form for Dom0 and DomU's.

Since the debian repository doesn't appear to have 4.6.1 in any of the distribution channels according to https://www.debian.org/distrib/packages what would be the most recommended way of achieving this please? Would there be an option that is more favoured in terms of keeping the install up to date, if as I suspect it has to be done by circumventing the normal apt install from the repository process?

Are there any other resources anyone can point me to with regards to best practices for installing and maintaining the latest version?

Kind regards
Justin

NVIDIA VGA Passthrough

$
0
0
Hello,

Let me start out by stressing that I consider myself a total Xen noob who has just about managed to hack together a working Xen system.

I'm running Xen4.1 with xm tool stack on top of Debian Wheezy.

I have a Palit NVIDIA GT730 that I'm trying to statically pass through to a DOMU. I am having real difficulties. I started out by identifying the card and editing my grub.cfg file but after re-booting, xm pci-list-assignable-devices says that pci-back may not have been loaded (or words to that effect) and didn't list anything. Looking in to this, I'm not sure if grub isn't loading the vga devices first before it even gets to my edited line?

I've read through as many of the guides on the wiki as I can find but am making no headway.

I also looked at how to load the devices dynamically but fell over at the first step as my file structure under: /sys/bus/pci/devices/ is drastically different from the one in guide and I couldn't find an "unbind" function.

Any advice would be gratefully received!

Thank you

Xen Network Configuration problems

$
0
0
I've been struggling to get network connectivity for my DomU environments. I've been googling and searching, and I've followed all of the steps on several guides without success. My setup is:

Dom0: Debian Jessie

DomU: Ubuntu Trusty

DomU can connect to Dom0, and Dom0 can connect to DomU, but DomU cannot connect to the external network despite many attempts.
Dom0

$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
auto lo
iface lo inet loopback

iface eth0 inet manual

# bridge public
auto xenbr0
iface xenbr0 inet dhcp
	bridge_ports eth0

$ brctl show
bridge name	bridge id		STP enabled	interfaces
xenbr0		8000.080027c0ba8f	no		eth0
							vif1.0
DomU
$ cat /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# post-up ethtool -K eth0 tx off

#
# The commented out line above will disable TCP checksumming which
# might resolve problems for some users.  It is disabled by default
#
Any help would be GREATLY appreciated.

Incidentally, Dom0 is virtualized on the latest version of VirtualBox.

I've also added these values to /etc/sysctl.conf on Dom0:
net.ipv4.conf.all.rp_filter=1
net.ipv4.ip_forward=1
net.ipv4.conf.eth0.proxy_arp=1
net.bridge.bridge-nf-call-ip6tables=0
net.bridge.bridge-nf-call-iptables=0
net.bridge.bridge-nf-call-arptables=0

md raid sync and ext3 formatting on xen hvm guest causing kernel crash and device offline

$
0
0
Hi
I am new to xen implementation. So my questions may be a bit novice. Since, I am not getting help anywhere, therefore I have come here for an expert opinion.

So, here's what is happening.

This problem is related to mirror raid resyncing when doing installation through anaconda of CentOS 6.6 systems as a xen hvm guest.

Base xen system - xen kernel version - 4.1.18-1.el6xen.x86_64
Guest System - CentOS 6.6 - kernel version - 2.6.32-504.16.2.el6

Drive exposed on host system, for hvm guest = /dev/sdb - 2TB
partitioned as
/dev/sdb1 - primary - 1024MB - 262144MB = 256GB
/dev/sdb2 - primary - 262144MB - 524288MB = 256GB
/dev/sdb3 - primary - 524288MB - 786432MB = 256GB
/dev/sda4 - extended - 786432MB - (-1)
/dev/sda5 - logical - 786432MB - 1048576MB = 256GB
/dev/sda6 - logical - 1048576MB - (-1)

The above partition layout was exposed to hvm guest as follows
-------------------
builder = "hvm"
name = "centos_md_sync"
memory = 2048
vcpus = 4
vif = ['bridge=xenbr0']
disk = ['phy:/dev/sdb1,sda,w','phy:/dev/sdb2,sdb,w','phy:/dev/sdb3,sdc,w','phy:/dev/sdb5,sdd,w']
vnc = 1
boot="c"
---------------------

When anaconda installation started, I partitioned drives mentioned above as follows
Host System -> Guest System -> Partition layout
/dev/sdb1 -> /dev/sda -> /dev/sda1, /dev/sda2 ..... /dev/sda12
/dev/sdb2 -> /dev/sdb -> /dev/sdb1, /dev/sdb2 ..... /dev/sdb12
/dev/sdb3 -> /dev/sdc -> /dev/sdc1, /dev/sdc2 ..... /dev/sdc12
/dev/sdb5 -> /dev/sdd -> /dev/sdd1, /dev/sdd2 ..... /dev/sdd12

Now in the HVM guest OS we doing RAID 1 mirroring as follows (done during installation itself, from anaconda)
/dev/sd[ab]1 = /dev/md0
/dev/sd[ab]2 = /dev/md1
|.
|.
|.
/dev/sd[cd]1 = /dev/mdX
/dev/sd[cd]2 = /dev/mdY ....etc.

Now these md(s) get created properly, and as soon as the creation ends, resyncing starts. Now when /dev/md0 is resyncing, other partitions on /dev/sda & /dev/sdb go in DELAYED state, that is expected, I understand.
Similarly with /dev/sdc and /dev/sdd. However after sometime, the
/dev/sd[abcd] drives start to go offline and eventually kernel crashes.
I checked /sys/block/sda/device/state information on Guest OS while the installation was going on, and it says "offline"

I picked up some snapshots and they are kept here:

https://drive.google.com/folderview?id=0B3b5lkAlTOf9eGVFUTVOeWxoTms&usp=sharing

Some important points,
1. I installed a Linux CentOS 6.6, without having these SW RAID partitions being created from within anaconda.
2. When the Guest System came up, I created md raids from within a running system, and similar issue were seen. The problem was same as to what happened during installation, devices went offline, and then kernel crashed.

Everytime, a RAID1 sync starts for a large drive in Guest OS
(say > 20GB), after sometime, devices start to go offline and then kernel crashes. Whether during installation or else otherwise as well.

Could anybody help me about his?
If you want some more snapshots or error messages do let me know.

Thanks and regards
Anugraha

What is maximum number of SCSI/Sata disks that can be assigned to a HVM guest?

$
0
0
Hi All,

I am new to xen implementation and please spare me if my question is novice.
On Host machine (ubuntu 3.13.0-83), using xen server(4.4.2) i created a CentOS HVM guest (CentOS-6.6).

After centOS installation when I specified 16 SCSI/Sata disks in cfg file, "xl create" failed as follows:

root@ubuntu-hypervisor:# xl create centOS6_6-hvm.cfg
Parsing config from centOS6_6-hvm-installed_16drive.cfg
libxl: error: libxl_dm.c:1393:device_model_spawn_outcome: domain 39 device model: spawn failed (rc=-3)
libxl: error: libxl_create.c:1189:domcreate_devmodel_started: device model did not start: -3
libxl: error: libxl_dm.c:1497:kill_device_model: Device Model already exited
I searched for the solution to above over internet and found it somewhere that providing 'device_model_version="qemu-xen-traditional"' in .cfg file would solve this problem. This also worked for me and CentOS started to boot. But while booting it crashed.
[Attached snapshot of the crash]

Content of .cfg file is as follows:
builder = "hvm"
name = "CentOS-6.6"
memory = 2048
vcpus = 2
vif = ['']
disk = ['phy:/dev/sdb6,sda,w','phy:/dev/sdb8,sdb,w','phy:/dev/myvg_hydra/sdb20,sdd,w','phy:/dev/myvg_hydra/sdb9,sde,w','phy:/dev/myvg_hydra/sdb10,sdf,w','phy:/dev/myvg_hydra/sdb11,sdg,w','phy:/dev/myvg_hydra/sdb12,sdh,w','phy:/dev/myvg_hydra/sdb13,sdi,w','phy:/dev/myvg_hydra/sdb14,sdj,w','phy:/dev/myvg_hydra/sdb15,sdk,w','phy:/dev/myvg_hydra/sdb16,sdl,w','phy:/dev/myvg_hydra/sdb17,sdm,w','phy:/dev/myvg_hydra/sdb18,sdn,w','phy:/dev/myvg_hydra/sdb19,sdo,w']
# 'file:/export/CentOS-6.6/CentOS-6.6-x86_64-bin-DVD1.iso,hdc:cdrom,r']
vnc = 1
boot="c"
But when i replaced sda,sdb,..[scsi disks] with xvda,xvdb,... [xen virtual disk], xl create command successfully executed and in CentOS HVM i could see all of the 16 disks listed/recognized in Centos HVM.

So, my question is:
1. Is there some limit on maximum number of SCSI/Sata disks that can be provided to xen HVM? I have searched it over internet but not able to find the concrete answer(My be missed something while searching).
2. At one place http://discussions.citrix.com/topic/317206-only-4-virtual-disks-detected/#entry1692261 it has been asked to change HVM mode to PV mode to solve this problem. Is it the only way to make Guest recognize this amount of SCSI/Sata disks?
3. In my environment i have to install a xen HVM(only, not PV) guest with 16 disks, is the same possible with this version of xen?

Also, please guide me if my approach of creating the HVM guest is wrong or i have missed upon something.

Networking in Xen.

$
0
0
Hello.
I installed Xen and want configure network for my Xen. I have some questions :
1- I use Fedora 23 as Dom0 and for create a bridge network in Xen what should I do? If possible, Please tell me about commands.
2- How about NAT? If I use "vif=['']" it mean NAT?
3- How about Static IP? If I use "vif=[192.168.1.1]" then it mean static IP?

Thank you.

web interface xen

$
0
0
Hello,
Is that there is a web interface for Xen ?

domU ping but no internet access

$
0
0
Hello,
I am a really beginner user with xen and this is my situation :

My dom0 and domU are configured with static network adresses (10.x.x.x)

My dom0 has acces to internet (wget, apt-get,...)
My dom0 can ping external adresses like google but cannot acces to services (port 80, apt,...)

I really don't know what is going wrong.

Can someone help me with my trouble?

Thanks
Viewing all 170 articles
Browse latest View live