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

Re: Porting xen on rpi4


  • To: Vipul Suneja <vsuneja63@xxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 24 Aug 2022 14:35:46 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OmB7EnF6gTxsol9oyR8+nGZ90B+sbww2CPO0d3E1iSQ=; b=WAbY9RPvTQF2fvu3YCLDTJfxOO9h3YIYhc9kcP3LA5DevT474iaSHPl4OmKUQYoHLHyWUt2OuDTYK73Q3X0sDema+PsmvZPcYGrGzeQfQQcWkuzOJIYzztIcm/G+no3X4BjKIMMX99HuCUK1yMoxtGQyaZsCvzYZuB8EBPvAt9XZfvaDyeLgmyVkWjoc3WH/TYYgQ1aE06PIbjzn2Dt3wyCbAkm/Kt1y0mspdKKdtvOe7GUB2148cJZ1DGV+wSIWBMdurOs3yeAqZ2dAwVwzhppzfg9SLbm5+ScLWyjD9B3+XbrE8bKINz237ipMl1oZGpL3EYXtv4RBx8bxHMRLng==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OmB7EnF6gTxsol9oyR8+nGZ90B+sbww2CPO0d3E1iSQ=; b=aMNP8WC1ICxEezbN0kYWsIW5ciWzvQxcJKAVDuG6oT5zekaLpHARRQXZkweOT9QycFu//YLpBiYJMrBHLqMSqXwfkdWYjtl75lDKExBBGrvrdIiA/K6b8D9XUnc15cfes2CB2PwgkUff1RstyaJLw7WNwdmWAzJ2ivDu/0c4cmK7SrympHmyUhOjsCLifxFf7hpJNSXtpfUj30D1UyXffVPHSXqAbDlDj8Kj7ymLjjhtzRtOQTo/IniAM4ztUqbOybPj62bBbtjL1YYAdxvIYyUpaQdcStfTKSUzMRhIOER3VQtmggpAx+Y5G3nM2I2u5H8Epb3giKHrAMpY/B+gQg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=J2MJKd5fWKrCqZl2t7F2nogZS3OrYGLYHhVCFcb5eNQhVle4gvOTS1riPJ6Sz95bKgeWtC0tKRTdf90r2hoeZiybrkRBwcvmgat4gGHhFcH4ZGTUUnEfMv9melOub3sqQiSp3wQkwlBzNLr/B74N2G23wJGUSJdrA8hXEbYKStgWjltdLUOGbjjz+CCdYY6vsutRq+wdlyfQCyQOct7vjiNN9BfDntCbjDuXIKD0a6hpD/iYKX0UI8N/+3WLaS5rRIQmFxrD2+NbihCBI+BjCuEpRMV2QnyqJxb8G12CzRL9h4vCRFCYgCSW8SBfyPO/zj+2PmIY4aR/BREUaJIn1g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mrwq+j50pKQDtQqEiZ5B18ahfQw19QUiHJhyB0eWRKcZX9cKm1obg0MBX6YVSuidrcV6Tpuab5Z4hOKAp6j67QRSOUG2kD4c6y2gfnOhL9fcrwOObaMuG34GFiQ2D4Y9fRlqwKEU3pumbdd3fAhCJ704OL3XPiSMIPHUDQCIpMT8EX9jB0Z0QDvMnoDgR6RsrjPju3t+RszJNjQgfy6ZU0aSNNgzPlJsBq8p5d8BBW0y4DUHgEQCVar12Ueu9WDwp/qI73cz/3Yp0r6IqgTj3VjbmSTh97OQ9F8nfofDLcfPbk6aqReMT3yAPyMPkB0cZ6hE4sNF/3yvZw8g1rLJ0g==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "julien@xxxxxxx" <julien@xxxxxxx>
  • Delivery-date: Wed, 24 Aug 2022 14:36:12 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYt8SgkyOonJ7Wl0ezDHN7orB+v62+Hg2A
  • Thread-topic: Porting xen on rpi4

Hi Vipul,

> On 24 Aug 2022, at 15:16, Vipul Suneja <vsuneja63@xxxxxxxxx> wrote:
> 
> Hi,
> 
> I am porting xen hypervisor on rpi4 with yocto kirkstone sources. Followed 
> the basic steps to build xen-image-minimal & xen-guest-image-minimal. I could 
> flash sd card with xen minimal image & could see dom0 up. I copied "Image", 
> "xen-guest-image-minimal" .ext3 file & guest.cfg to "/home/root". After that 
> created a bridge with below step:
> 
> killall -SIGUSR2 udhcpc
> brctl addbr xenbr0
> brctl addif xenbr0 eth0
> killall udhcpc
> udhcpc -R -b -p /var/run/udhcpc.xenbr0.pid -i xenbr0 
> 
> Could see the xenbr0 interface up.
> After that while mounting the guest file system it shows no such file or 
> directory but the file is already there.
> 
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# ls -l
> [23:40:15] <Guest9046> -rw-r--r--    1 root     root      24652288 Mar  9 
> 12:36 Image
> [23:40:15] <Guest9046> -rw-r--r--    1 root     root           247 Mar  9 
> 12:37 guest1.cfg
> [23:40:15] <Guest9046> -rw-r--r--    1 root     root     868220928 Mar  9 
> 12:39 xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# chmod 0777 
> xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# ls -l
> [23:40:15] <Guest9046> -rw-r--r--    1 root     root      24652288 Mar  9 
> 12:36 Image
> [23:40:15] <Guest9046> -rw-r--r--    1 root     root           247 Mar  9 
> 12:37 guest1.cfg
> [23:40:15] <Guest9046> -rwxrwxrwx    1 root     root     868220928 Mar  9 
> 12:39 xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# losetup /dev/loop0 
> xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> losetup: xen-guest-image-minimal-raspberrypi4-64.ext3: 
> No such file or directory
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# losetup /dev/loop0 
> /home/root/xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> losetup: 
> /home/root/xen-guest-image-minimal-raspberrypi4-64.ext3: No such file or 
> directory
> [23:40:15] <Guest9046> root@raspberrypi4-64:~#
> [23:40:15] <Guest9046> root@raspberrypi4-64:~#
> [23:40:15] <Guest9046> root@raspberrypi4-64:~#
> [23:40:15] <Guest9046> root@raspberrypi4-64:~# losetup /dev/loop0 
> /home/root/xen-guest-image-minimal-raspberrypi4-64.ext3
> [23:40:15] <Guest9046> losetup: 
> /home/root/xen-guest-image-minimal-raspberrypi4-64.ext3: No such file or 
> directory

Why do you want to mount the file system ?

Anyway this is not related to Xen, I guess you could start without xen and 
still not manage to mount the file like that (linux configuration issue ?)

What is the content of you guest.cfg
How do you want to pass the guest root file system ?

Yocto should actually generate an img file and you could use it by having 
something like this in your guest.cfg:
disk=["file:/home/root/guest1.img,xvda,w”]

Cheers
Bertrand

> 
> Any input on this issue will be really helpful, expecting your response.
> 
> Thanks & Regards,
> Vipul Kumar


 


Rackspace

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