Hi Leute,
habs noch mal versucht, was bedeutet in diesem Kontext TTYNAME?
Bringing machine 'default' up with 'virtualbox' provider...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 | ==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'gbarbieru/xenial' is up to date...
==> default: Setting the name of the VM: template-vagrant-ubuntu-164-lts-php-Kopie_default_1469381176119_51513
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 80 (guest) => 8080 (host) (adapter 1)
default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /var/www => D:/Production/template-vagrant-ubuntu-164-lts-php - Kopie/project
default: /vagrant => D:/Production/template-vagrant-ubuntu-164-lts-php - Kopie
default: /home/vagrant/scripts => D:/Production/template-vagrant-ubuntu-164-lts-php - Kopie/scripts
==> default: Running provisioner: file...
==> default: Running provisioner: file...
==> default: Running provisioner: file...
==> default: Running provisioner: file...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: mesg:
==> default: ttyname failed
==> default: :
==> default: Inappropriate ioctl for device
==> default: ready, install with sudo sh ~/scripts/installServer.sh!
|
default: ttyname failed
Dann führe ich diese Zeilen unbeaufsichtigt (setup script) aus und es wird mir in der Konsole gezeigt das eine Eingabe erforderlich ist.
Der Grub loader sagt ich müsse ein Laufwerk auswählen. ( The GRUB boot loader was previously installed to a disk that is no longer present, ...)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | #!/usr/bin/env bash
### Copy hosts file to activate the hosts
sudo cp /home/vagrant/transfer/hosts /etc/hosts
### apache installation and configuration
echo "Start installing apache server"
sudo apt-get install -y apache2
sudo mv /home/vagrant/transfer/vhost.dev.conf /etc/apache2/sites-available/vhost.dev.conf
sudo mv /home/vagrant/transfer/vhost.test.conf /etc/apache2/sites-available/vhost.test.conf
sudo a2ensite vhost.dev.conf
sudo a2ensite vhost.test.conf
sudo a2enmod rewrite
sudo service apache2 restart
sudo apt-get update -y
sudo apt-get upgrade -y
|
Das passiert scheinbar beim Upgrade! wenn ich das Script manuell ausführe dann kommt der Screen aus dem Anhang. Wie vermeide ich den Screen?
Danke, deAndro....