GithubHelp home page GithubHelp logo

nachoparker / qemu-raspbian-network Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 25.0 2.89 MB

Launch a raspbian image on qemu with network connectivity

Home Page: https://ownyourbits.com/2017/02/06/raspbian-on-qemu-with-network-access/

License: GNU General Public License v2.0

Shell 100.00%

qemu-raspbian-network's People

Contributors

andrewmichaelsmith avatar kaiwan avatar nachoparker avatar selvakn avatar vincele avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qemu-raspbian-network's Issues

sda2 not an SD card. Don't know how to expand

When I use qemu-img in order to expand the Raspian IMG and now want to expand the file system in the IMG using raspi-config I get the error message

sda2 not an SD card. Don't know how to expand

Raspian OS: Raspian Stretch (not the lite version)
QEMU version: 2.10.1(Debian 1:2.10+dfsg-0ubuntu3.4)
/etc/udev/rules.d/90-qemu.rules (guest):

KERNEL=="sda", SYMLINK+="mmcblk0"
KERNEL=="sda?", SYMLINK+="mmcblk0p%n"
KERNEL=="sda2", SYMLINK+="root"

Host information:

            .-/+oossssoo+/-.               thsys@budgie
        `:+ssssssssssssssssss+:`           ------------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 17.10 x86_64
    .ossssssssssssssssssdMMMNysssso.       Host: SATELLITE L50-C PSKW2E-018017GR
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 4.13.0-32-generic
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 41 mins
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 3964
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 4.4.12
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: Budgie
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter(Budgie)
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Theme: Arc-Darker [GTK2/3]
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Icons: Pop [GTK2/3]
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Terminal: terminator
  +sssssssssdmydMMMMMMMMddddyssssssss+     CPU: Intel i5-6200U (4) @ 2.800GHz
   /ssssssssssshdmNNNNmyNMMMMhssssss/      GPU: Intel HD Graphics 520
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA GeForce 930M
      -+sssssssssssssssssyyyssss+-         Memory: 2804MiB / 5859MiB
        `:+ssssssssssssssssss+:` 
            .-/+oossssoo+/-.                                       

[Feature request] Support for QCOW2 images

The Raspbian IMG does not leave a lot of space for storing files when I am trying to download something on to my virtual Pi. The thing is: raw data images take an eternity to expand even on my SSD. qcow2 images do not have this issue. This is why I would like to have qcow2 support for this script.

Message need tun module at startup what to do?

I'm getting "need tun module" at startup of the vm...I've tried everything I can to get things to work but no way. I did an "ip address show" command and I see a tap0 "tap0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 02:4d:40:9a:79:99 brd ff:ff:ff:ff:ff:ff
But I need some help getting this script to run. lsmod | grep tun shows nothing; but I can do modprobe tun without error. Maybe I need to reboot? I'll try that.

Can't run on Ubuntu

Hi,
First of all I'd like to thank you for putting this work out I've been looking to emulate raspberry pi with networking access for a while now. I'm very keen to see this project working but I've encountered errors when trying to run it.

First of all:

sudo apt-get install kvm qemu qemu-kvm-extras bridge-utils

Gives me:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'qemu-kvm' instead of 'kvm'
Package qemu-kvm-extras is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'qemu-kvm-extras' has no installation candidate

Secondly:

Launching qemu:

sudo ./qemu-pi.sh 2017-01-11-raspbian-jessie-lite.img # correct to real name

Starts going through boot process but then quickly shuts down with this error:

no IP found for enp3s0
need to tun module
umount: /home/rados/qemu-raspbian-network/tmpmnt: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument

More info:
I'm trying to run your project on Ubuntu 16.04.1 Xenial (4.4.0-59-generic).

Pulseaudio error in Ubuntu 17.10

I tried qemu-raspbian-network in Ubuntu 17.10, since it has qemu 2.10 which should support raspberry pi 2 better.

However I run into this error:

$ sudo ./qemu-pi.sh 2017-09-07-raspbian-stretch-lite.img 
[sudo] password for nikolaos: 
need tun module
No protocol specified
xcb_connection_has_error() returned true
Home directory not accessible: Permission denied
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
No protocol specified
xcb_connection_has_error() returned true
Home directory not accessible: Permission denied
No protocol specified
Could not initialize SDL(No available video device) - exiting 

This doesn't appear to be an error of qemu-raspbian-network but an Ubuntu / Gnome3 related error. Couldn't get it fixed though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.