[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't start hvm with network


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Leiber <paul@xxxxxxxxxxxxxxxx>
  • Date: Mon, 17 Mar 2025 16:57:03 +0100
  • Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1742227031; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From: Subject:Sender; bh=eJLpb9hUOp2Qo3u72isrmoKLWp8xZgzOwpGf/Kf+Ivw=; b=W/IEAFyY2AGb3JqqG+4FQEnt9c5EsSTfzxxrAQCulC2wrr2V4pdpOB2GFdc0+PQMIi yhv/cxBid/aPiYLevjkZ4jgwb1p/4bKDp17KvEdfnF59OqsrljxMVib/qrnLIUKNX9Ol MJGZ+8Y8HLurXrmBavvcXBZbTawA6cRtJL4d2etlU99z903pAwFKC58L6zE6haKMu4Q/ xZRvbN0qH8/wDyYbTMQyMp+BmLUAnG/h2x4nYalqo4cuCLh0RdoVwJos/gjXDReRoNrS iC13HSbDQMs6ASDhack0pDYw0urkIY7a7ia/cRkjVqvHwIXsu1T/2kU+drKgvcPR3otd kKKw==
  • Arc-seal: i=1; a=rsa-sha256; t=1742227031; cv=none; d=strato.com; s=strato-dkim-0002; b=KnvDOb3dI8EklQD9xfCQddwdSGFfg3mp3Oxec23VycoLUUr23NRgx9sThIt95XSHYU RryptdPy8+IBLNBuM/G99C9ldi6v/rsUbOLYUNho9suWeg36dgPL0cFmEvDQdN/y2Q0B gRO/xAU2Z+h2g/dL61oZVI8WHHQjUzmO6QFyDIVu7LsTJNdTYCo05pORbYXeImAiJ1pu UdbiW+qYuTKF/65lRKEHTAJgBOhqo1M7COxxOgIn4yIYgT3ZFAWpXB3lCRNC4CTHhTSX OlSPkW+3kDZnAOswFBMDNI4P+sGBqOYE2wpaS48qE83SPPvpzwLecKsrhmj4I5gpl6+9 XaAw==
  • Delivery-date: Mon, 17 Mar 2025 15:57:41 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Hi Kevin,

Am 17.03.2025 um 16:01 schrieb Kevin Wang:
Installed ubuntu 24 onto E3-1225 v5 @ 3.30GHz (2C/4T) with one boring sata disk, but I can't get the vm to start the ubuntu24 server installer iso

cat >/etc/xen/auto/couch5.hvm <<'__EOF__'
builder = "hvm"
name = "couch5"
memory = "10240"
vcpus = 2
#vif = ['']
#vif = ['type=ioemu,model=e1000']
#vif = ['type=ioemu,model=rtl8139']
disk = ['phy:/dev/mapper/ubuntu--vg-couch--disk,hda,w','phy:/dev/mapper/ ubuntu-- vg-couch--home,hdb,w','file:/d/dmg/ubuntu-24.04-live-server- amd64.iso,hdc:cdrom,
r']
#disk =
disk = ['phy:/dev/mapper/ubuntu--vg-couch--disk,hda,w','phy:/dev/mapper/ ubuntu--
vg-couch--home,hdb,w']
vnc = 1
vncdisplay = 5901
boot="dc"
__EOF__

As depicted here, commenting out all the vif= lines, it does boot (but a server without a network isn't useful). But if I include any of the vif= lines, it won't even start, I get:

# xl create /etc/xen/auto/couch5.hvm
Parsing config from /etc/xen/auto/couch5.hvm
libxl: error: libxl_dm.c:3151:device_model_spawn_outcome: Domain 7:domain 7 devi
ce model: spawn failed (rc=-3)
libxl: error: libxl_dm.c:3371:device_model_postconfig_done: Domain 7:Post DM sta
rtup configs failed, rc=-3
libxl: error: libxl_create.c:1896:domcreate_devmodel_started: Domain 7:device mo
del did not start: -3
libxl: error: libxl_aoutils.c:646:libxl__kill_xs_path: Device Model already exit
ed
libxl: error: libxl_domain.c:1183:libxl__destroy_domid: Domain 7:Non- existant do
main
libxl: error: libxl_domain.c:1137:domain_destroy_callback: Domain 7:Unable to de
stroy guest
libxl: error: libxl_domain.c:1064:domain_destroy_cb: Domain 7:Destruction of dom
ain failed

Unfortunately, I don't have the knowledge to analyze the output you posted in detail. What comes to my mind, though: Did you set up a network bridge on Dom0? The default name of the bridge, if no other is given in the vif=... line (as in your examples), is xenbr0, as described in the docs [1].

My main guide is still the old wiki [2], the steps to create such a bridge are given there.

On another note: Why are you using HVM for setting up a linux DomU? I never tested Ubuntu myself, but for Debian (and most likely Debian-based) distributions, PV should the better option. Again, [2] shows how to install a Debian PV DomU, and the procedure is still working (of course, wheezy is a bit outdated and needs to be replaced, e. g. with bookworm). The section even mentions Ubuntu distributions, so it's probably worth to dig deeper there.

Paul

[1] https://xenbits.xenproject.org/docs/unstable/man/xl-network-configuration.5.html [2] https://wiki.xenproject.org/wiki/Xen_Project_Beginners_Guide#Creating_a_Windows_HVM_(Hardware_Virtualized)_Guest






 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.